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

Please I need help of this script. It won't work.?

Asked by 10 years ago

Please fix this script for my place...

game.Players.ChildAdded:connect(function(player)
player.Chatted:connect(function(chat)
if player.Name == {"spyderaudir8","LordPhantomized","Xenticist","RizeCyan","Cysira","RobloxMurderingLord","LadyPhantomized","ForeverDestroyed","sabhari","RiZeolive","muradedo","unitedfan19","DeterminedCommander","xXSicariusXx","michaelbarcelona","Eviljacksona","xXTheEpicBakrXx","amazingshadow345","espinosa949","adam09865","infinitylife20","XperiaPro","epicmove","alexalex666666","Skylion124","kjsmarty","rohelper123","supersoldier86alt","LightningStormFlyer","xdMickey","AntiBuzzle","LordStrictest","LogicBean","Blockmanxd","DrDerpStein"} then
if string.lower(chat) == "load/gf" then
if not game.Workspace:FindFirstChild("GF") then
game.Lighting["GF"]:Clone().Parent = game.Workspace
end
elseif string.lower(chat) == "unload/gf" then
if game.Workspace:FindFirstChild("GF") then
game.Workspace["GF"]:Remove()
end
end
end
end)
end)
0
Can you please put it in code block? ultrabug 306 — 10y
0
I putted it now. spyderaudir8 0 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Sorry if this doesn't work. --Edited--

admins ={"spyderaudir8","LordPhantomized","Xenticist","RizeCyan","Cysira","RobloxMurderingLord","LadyPhantomized","ForeverDestroyed","sabhari","RiZeolive","muradedo","unitedfan19","DeterminedCommander","xXSicariusXx","michaelbarcelona","Eviljacksona","xXTheEpicBakrXx","amazingshadow345","espinosa949","adam09865","infinitylife20","XperiaPro","epicmove","alexalex666666","Skylion124","kjsmarty","rohelper123","supersoldier86alt","LightningStormFlyer","xdMickey","AntiBuzzle","LordStrictest","LogicBean","Blockmanxd","DrDerpStein"}

game.Players.ChildAdded:connect(function(player)
for i=1,#admins do
if player.Name:lower() == admins[i]:lower() then
player.Chatted:connect:(function(chat) --Moved over here
if chat:lower() == "load/gf" then
if not workspace:FindFirstChild("GF") then
game:service("Lighting"):FindFirstChild("GF"):Clone().Parent = workspace
end
elseif chat:lower() == "unload/gf" then
if workspace:FindFirstChild("GF") then
workspace["GF'}:remove()
end end end end)end end end) --I think I forgot the other 'end' XD
0
It has a problem on #6. Please fix it if you can. spyderaudir8 0 — 10y
0
There, should work now. TheeDeathCaster 2368 — 10y
0
Thanks. spyderaudir8 0 — 10y
Ad

Answer this question