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

How come one of the commands in my script aren't working?

Asked by 10 years ago

Its the 'c/' command, it isn't working, it keeps saying Failed to create script! :(, I have tested it, and changed a few things, but still is not working, and there is nothing coming up in the Output, here is the script;

01local Admins = {"TheeDeathCaster","TheAlphaStigma","DeathWindZombie"}
02 
03function chkAdmin(str)
04for i = 1, #Admins do if str.Name:lower() == Admins[i]:lower() then return true end end
05return false
06end
07 
08function Message(msg,time,par,type)
09local m = Instance.new(type)
10m.Parent = par
11for i = 1, #msg do
12m.Text = tostring(string.sub(msg,1,i))
13wait(0.07)
14end
15wait(time)
View all 77 lines...

1 answer

Log in to vote
2
Answered by
Nickoakz 231 Moderation Voter
10 years ago
01local Admins = {"TheeDeathCaster","TheAlphaStigma","DeathWindZombie"}
02 
03function chkAdmin(str)
04for i = 1, #Admins do if str.Name:lower() == Admins[i]:lower() then return true end end
05return false
06end
07 
08function Message(msg,time,par,type)
09local m = Instance.new(type)
10m.Parent = par
11for i = 1, #msg do
12m.Text = tostring(string.sub(msg,1,i))
13wait(0.07)
14end
15wait(time)
View all 77 lines...

You were checking if someone was admin, it returned true, but if it was NOT.

0
Oh, thanks bro! :D TheeDeathCaster 2368 — 10y
Ad

Answer this question