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)
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.