Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How would you make a GUI appear with Touch Interest?

Asked by
CHATED 10
9 years ago

I currently have this script for a click detector, but I need to make the gui show up on touch. I tried to make the code the same but use touch interest instead of MouseClick but It won't work. I also want it to check if the gui == or doesn't = nil like I did with find first child.

function boop(Player)
    if not Player.PlayerGui:FindFirstChild("Gui") then
        local gui = script.Gui:clone()
        gui.Parent = Player.PlayerGui
    end
end
script.Parent.ClickDetector.MouseClick:connect(boop)
0
Something needs to be touched, for the Touched event to work; part, model etc. alibix123 175 — 9y

Answer this question