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

What's wrong with this script?

Asked by 11 years ago

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 
03GroupId = 1009344
04RankId = 255
05Maps = game.ServerStorage.Maps
06 
07 
08--[Debounces]--
09 
10Intermission = false
11SimulationStarted = false
12Locked = false
13 
14 
15--[functions/System code]--
View all 33 lines...

It's in a Script(Not Local) by the way.

1
Please don't title a question "what's wrong with this script?" FearMeIAmLag 1161 — 11y
1
I don't see anything wrong. c: That's my question is grammatically correct, if you are going to down-vote it for that, get a valid reason. Slazerick 55 — 11y

2 answers

Log in to vote
1
Answered by
Aethex 256 Moderation Voter
11 years ago

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.

0
Omg it was that, how couldn't I realize that. Slazerick 55 — 11y
Ad
Log in to vote
0
Answered by 11 years ago

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).

0
I know I misspelled the Debounce but that doesn't affects the script at all and yeah I want to destroy Player, only to test of course, I'll be changing the destroy once I get the script to work. Slazerick 55 — 11y

Answer this question