So i’m creating a simple obby game, and it’s checkpoints are team-based
But when i tested it with my friend, either he or myself would end up in later stages when we start
Not sure what’s causing this, teams or spawn points.
(if more details are needed i’ll give them)
You could make a script that sets the players team when they join the game to the starter team.
Hey,
You definitely can’t just put spawn points only on new stages. You need to add some kind of script to make it that particular spawn point when touched.
You can probably find a video on YT or just take a free model and copy the script and use it for your checkpoints.
I hope this helped you!
- Cheerful
It is actually possible to do this. What you need to do is go into each spawn point and go to the Team categories in properties and disable the property called Neutral. You will also want to enable AllowTeamChangeOnTouch in the properties.
With your teams you will also need to ensure that you have AutoAssignable on each team set to false.
You may need to create a script though that initially teams them when they first join the game so that they are put at the correct spawn. You could use something like this:
game.Players.PlayerAdded:Connect(function(plr)
plr.Team = game.Teams.StartTeam --- Change StartTeam to the name of your team
wait(1)
plr:LoadCharacter() -- Respawning character to ensure they go to correct spawn point
end)
I have also made an obby, and this is the method I used. I used no scripts in any of the spawns. For the first one, you don’t have to do anything. For the rest, just go to properties and check the AllowTeamChangeOnTouch box, and change the TeamColor box to the color of the team you want them to change to. Hope this helps!
To be quite frank, from what I’ve seen from your post, I feel like you added in a bunch of SpawnLocations rather than checkpoints, because I think there’s a difference between the two in obbies. For instance, spawn location is where you start off or like where you respawn after dying. Checkpoints automatically set a spawn for you, but in your case, you added default spawns around the Obby.