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)
You could clone the gui and add it to there players for 3 seconds then delete it.
player = game.Players:GetPlayerFromCharacter(part.Parent) copy = locationtogui:Clone() copy.Parent = player.PlayerGui wait(3) copy:Destroy()
Put after part.Parent:MoveTo(script.Parent.Parent.RespawnPoint1.Position)
.