What I'm saying that is there way to set a players spawn point were the are standing by clicking a gui button? If there is, please tell me and give me a example script please. Thanks!
✓ ANSWER ACCEPTED
Is there a way to set a spawn point?
2 answers
✓ Accepted answer
You can't directly set a player's spawn location. By default, the player will spawn at a randomly chosen SpawnLocation as long as it matches his TeamColor.
If you want to move the character as soon as he spawns, you can connect to the CharacterAdded event and teleport the player to a position.
function onPlayerAdded(player)
player.CharacterAdded:connect(function(character)
wait()
character:WaitForChild("Torso")
character:MoveTo(Vector3.new(0, 1000, 0))
print("Teleported to position")
end)
end
game.Players.PlayerAdded:connect(onPlayerAdded)
for _,player in pairs(game.Players:GetPlayers()) do
onPlayerAdded(player)
end
My best advice is to make a spawn point with transparency infinitely.
Go to properities and change it to 1 or higher for more transparency.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
This is not a request site, please include any coding or research you have already done.
-_-