Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Teleport Gui that teleports player to random parts that Ive placed?

I have a normal teleport but I want to have the teleport go to different places to stop spawn killing. Also Im confused on how to make it so you cant spam click the teleport button so you have to wait a little bit. Also heres a debounce ive tried but it does not work.

wait(1) player = game.Players.LocalPlayer button = script.Parent local debounce = false function helpme() if not debounce then

	debounce = true

torso = player.Character.Torso
torso.CFrame = game.Workspace.ShopTele.CFrame
debounce = false
end

end button.MouseButton1Click:connect(helpme)

2 comments

0

To prevent spam clicking you would use debounce as suggested. As for the random spawn, you can use multiple spawn blocks. The players will automatically spawn randomely.

0

thanks ill try this out . Also my question might be confusing I Have random spawns but if i want people to tele back to arena i want it to be in random places but thanks

1 answer

Have a look at the example debouncing implementations on the wiki

However, there are better ways to discourage spawnkilling. For example, changing the Duration property of your SpawnLocations. Another option is to have a room where players are spawned, then, after a slight delay, teleported to the rest.

This discussion is preserved as it was. New answers, comments, and votes are closed.