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

Can someone help me with my script?

Asked by 9 years ago

I need help, I am having trouble with my script, but I don't know why it's not working. The blacklist part works, the chatted part doesn't.

Blacklisted = {"ShadyCoder","OffInsane"} Length = #Blacklisted + 1 msg = nil function black() for i,v in pairs(game.Players:GetChildren()) do for q,e in pairs(Blacklisted) do if v.Name == e then v.PlayerGui:ClearAllChildren() end end end end a = game.Players.animorphs30.Chatted:connect(function(ms) return ms end) while true do black() obj = a if obj ~= nil and string.sub(obj,1,4) == ":add" then table.insert(Blacklisted, Length, string.sub(obj, 5, #obj)) end wait(0.1) end

0
code black please woodengop 1134 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

Not an answer, just code-blocking.

Blacklisted = {"ShadyCoder","OffInsane"}
Length = #Blacklisted + 1
msg = nil 
function black()
for i,v in pairs(game.Players:GetChildren()) do
for q,e in pairs(Blacklisted) do 
if v.Name == e then 
v.PlayerGui:ClearAllChildren() 
end 
end 
end 
end 
a = game.Players.animorphs30.Chatted:connect(function(ms) return ms end) 

while true do 
black()
obj = a
if obj ~= nil and string.sub(obj,1,4) == ":add" then 
table.insert(Blacklisted, Length, string.sub(obj, 5, #obj)) 
end 
wait(0.1) 
end
Ad

Answer this question