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)

1 comment
Something needs to be touched, for the Touched event to work; part, model etc.