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

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

Asked by 8 years ago

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)

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. AZDev 590 — 8y
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 varel45 0 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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.

Ad

Answer this question