Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

2 comments

0

Can you please put it in code block?

0

I putted it now.

1 answer

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

3 comments

0

It has a problem on #6. Please fix it if you can.

0

There, should work now.

0

Thanks.

This discussion is preserved as it was. New answers, comments, and votes are closed.