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

How do I finish a script's function?

Asked by 7 years ago

I'm just starting scripting, but still beginning. I'm working on this script (Pasted Below) but some functions within it aren't working, I could really use help fixing it. If you can, edit the parts that are needing to be fixing, because I'm not sure whats going on with it. Thanks.

THE SCRIPT:

001system = script.Parent
002is_playing = system.Playing
003stage = system.Stage
004 
005weapons = game.Workspace.Weapons
006 
007hum_team = game.Teams["Humans"]
008zom_team = game.Teams["Zombies"]
009 
010msg = nil
011hint = nil
012playing = false
013interrupted = false
014 
015minutes = 0
View all 243 lines...
0
May you give the output of when the code is ran ninja_eaglegamer 61 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

On line 43, you never closed the if statement with 'end', you only closed the function

1function removeMsg()
2    if(msg~=nil)then msg:remove() msg = nil end
3    end
4end
0
He did close the function; check the line that has the conditional. >-> TheeDeathCaster 2368 — 7y
Ad

Answer this question