I have a brick that telports you to another brick but im wondering how to make it so that when you touch it a random gui appears
heres my script inside the part that i want the player to touch and the random gui to pop up and the player to teleport to another brick
can someone tell me how to add it so that it picks a random gui to show for 3 seconds and then dissapear
function onTouch(part)
if part.Parent.Humanoid ~=nil then
part.Parent:MoveTo(script.Parent.Parent.RespawnPoint1.Position)
end
end
script.Parent.Touched:connect(onTouch)

2 comments
edit:- codeblock please tab the code
You will use that "part" and find the parent of the thing that touched it and if there's a humanoid inside of it. Then you'll FindFirstChild the Humanoid.Parent in Players. The Humanoid Parent will be the player model which is also the player name. Then clone the UI you want to put in the player and put it in the player's PlayerGui. Hope that explains what you need because I'm bad at explaining xd