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

Disable map spawnpoint if player stage is higher than 1? (For an obby)

Asked by 7 years ago

Hi. I'm trying to make an obby but whenever I make checkpoints the player always spawns at the map spawnpoint due to it being the only one and when I use them the player always spawns at the last one. Is there anyway to make it so the map spawnpoint works only when a player's stage is 1?

0
Are your checkpoints spawnlocations? Pengdoo 26 — 7y
0
No. Checkpoints are lime-green parts the same size as a spawnlocation. ExtremeSweg 2 — 7y

2 answers

Log in to vote
0
Answered by
Pengdoo 26
7 years ago
Edited 7 years ago

So I'm going to suppose your checkpoints are SpawnLocations. The SpawnLocations should have the AllowTeamChangeOnTouch set to true.

Now first off you gotta put your original map spawnpoint's AllowTeamChangeOnTouch set to false. Players should start off in a Team, black team that is (or whatever color you prefer), and the map spawnpoint's team color must be the same as the starter's team (in my example, black), and for every new checkpoint (spawnpoint) you create, you just make a new team, and the checkpoint should have the AllowTeamChangeOnTouch set to true and the TeamColor set to whatever new team it is. So everytime they die, considering they have touched the orange spawnpoint which sets them to the orange team, they will spawn back on the orange spawnpoint.

I hope I am clear because my answer seems a bit too complex but let's hope you understood that.

Good day! ~Pengdoo

0
I've done this. Now it works. However the player sometimes respawns at the map spawn (Level 1) but can just jump off and die and respawn to fix it. Is there any way I can fix that? ExtremeSweg 2 — 7y
0
make sure that when the players touch the "checkpoints" it actually changes their team. However I don't think I can address this problem, make sure to check everything :/ Pengdoo 26 — 7y
0
Make sure the checkpoints are spawnlocations or else it won't work. Make sure that the original spawn location (the original map spawnpoint) has the allowteamchangeontouch set to false Pengdoo 26 — 7y
0
I've done what you said. The Checkpoints work - just sometimes players spawn at level 1. ExtremeSweg 2 — 7y
0
well then I don't know what you're doing wrong but since you considered my answer as valid I think my work here is done... Might be a glitch with ROBLOX or something. Pengdoo 26 — 7y
Ad
Log in to vote
0
Answered by
TheePBHST 154
7 years ago
Edited 7 years ago

Here you go, so there is a property in the SpawnLocation. image

So for the checkpoints, you would turn on AllowTeamOnTouch and turn off Neutral Change TeamColor to the level that you want the spawn to give to the player after they die on that particular course.

I hoped this helped you!

Answer this question