of     1   

Richard_RahI
#183737496Tuesday, February 16, 2016 4:45 AM GMT

So I have this: function onTouched(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil) then script.Parent.BillboardGui.Frame.Visible = true end end script.Parent.Touched:connect(onTouched) And I just want it to make the billboard invisible when the person walks off of the part. Help please?
cofunction
#183737563Tuesday, February 16, 2016 4:46 AM GMT

TouchEnded.
Richard_RahI
#183737620Tuesday, February 16, 2016 4:48 AM GMT

Thats a thing?
ReallyExpensive
#183737629Tuesday, February 16, 2016 4:48 AM GMT

use touchended event TouchEnded(Instance otherPart) Member of BasePart Summary: Fired when the part stops touching another part and touching event Touched(Instance otherPart) Member of BasePart #print("ExpensiveGaming is awesome")
Richard_RahI
#183738269Tuesday, February 16, 2016 4:59 AM GMT

How do I get it to work in there? Im super new to this yall.
Aethex
#183738314Tuesday, February 16, 2016 5:00 AM GMT

exactly the same way you did it with Touched, except change it to TouchEnded also change "true" to "false" to make it invisible
Richard_RahI
#183738774Tuesday, February 16, 2016 5:09 AM GMT

Would this require a second script or no?
Richard_RahI
#183739186Tuesday, February 16, 2016 5:17 AM GMT

Because otherwise I have no idea how to fit it in.
Richard_RahI
#183740166Tuesday, February 16, 2016 5:38 AM GMT

Bump
Aethex
#183740193Tuesday, February 16, 2016 5:39 AM GMT

not really, you could just put it right under (or above) the function you have for doing stuff when Touched fires
cofunction
#183740208Tuesday, February 16, 2016 5:39 AM GMT

function onTouched(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil) then script.Parent.BillboardGui.Frame.Visible = true end end script.Parent.Touched:connect(onTouched) function onTouchEnded(hit) local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil) then script.Parent.BillboardGui.Frame.Visible = false end end script.Parent.TouchEnded:connect(onTouchEnded)
Richard_RahI
#183740565Tuesday, February 16, 2016 5:48 AM GMT

I forgot "(hit)" ... Face floor... Thanks guys.

    of     1