Hi, Today I just made this script but whenever I try to test it playing the game it won't work, am I doing something wrong?
01 | -- [ Variables ] -- |
02 |
03 | GroupId = 1009344 |
04 | RankId = 255 |
05 | Maps = game.ServerStorage.Maps |
06 |
07 |
08 | -- [ Debounces ] -- |
09 |
10 | Intermission = false |
11 | SimulationStarted = false |
12 | Locked = false |
13 |
14 |
15 | -- [ functions/System code ] -- |
It's in a Script(Not Local) by the way.
I tested your script after editing the group variables and it works fine. Are you sure you are chatting, "Oblithian:Start:Sim" directly? Capitalization matters since you aren't changing it to lowercase letters. If you are saying that, then make sure you have an actual model named, "Maps" inside of ServerStorage. If you do not, it will error.
On line 22 you misspelled SimulationStarted. You have "SimulationStared". Also, I'm assuming you don't actually want to destroy the player, just the player's character. If that is the case you would use Player.Character.Humanoid.Health = 0 (or whatever way you like to kill players).