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

Help! I have a game with spawnpoints in lighting yet it still spawns me on them! How do I fix this?

Asked by 10 years ago

I have a shooter game that changes maps every 12 minutes. Each map is in the lighting and each map also has their own custom spawnpoints. However, it spawns me on the spawnpoints in lighting as well as the ones in the workspace, so I constantly fall out of the map. How do I fix this?

0
Move them to replicatedstorage? TomsGames 225 — 10y
0
That won't work. Even in ServerStorage, "hidden" SpawnLocations still spawn you. adark 5487 — 10y

1 answer

Log in to vote
2
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

First of all, store things in ServerStorage or ReplicatedStorage, not Lighting.

Secondly, there are two methods to fix this bug you're having.

1) Create custom spawning.

Replace the SpawnLocations with custom bricsk, and use a Script to randomly place players only on SpawnLocations in the active map.

2) InsertService.

Use InsertService to insert the selected active map, and delete the active map when the round ends.

0
Thanks inspiredArbitrator! This will help! Haloboy788 10 — 10y
Ad

Answer this question