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

How do I make my Character spawn in a specific area when they join the game?

Asked by
Tan0ak 28
3 years ago

So in my game I have a arena with multiple spawn point and a waiting area with one. When I run my game tho, i spawn in the arena not the waiting area. Plaz Help me:(

3 answers

Log in to vote
0
Answered by 3 years ago

For the spawns in the arena disable the neutral spawn.

Ad
Log in to vote
0
Answered by
zadobyte 692 Moderation Voter
3 years ago

You can make a table full of spawn locations and pick randomly using math.random. Concept would look like this:

local spawns = {
    part1.Position
    part2.Position
    part3.Position
}

plr.CharacterAdded:Connect(function(char)
    char.Positon = spawns[math.random(1,#spawns)]
end)
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

To make it so that players spawn in a specific spot just put a spawn location. Here is a video on how to make one: https://www.youtube.com/watch?v=7yh1Qda0LXg

If you have any more questions please let me know!

Answer this question