I'm quite new to using the Chatted method, I still don't fully understand on how to use it. The function will not execute. It doesn't output any errors either.
admins={"iKxtiee","jtefurd","Player","Player1"}
function onChatted(msg)
if msg == ":regenblocks" then
game.Workspace.Blocks:Destroy()
local blocks=game.Lighting.Blocks:Clone()
blocks.Parent=game.Workspace
for _,v in pairs(blocks:GetChildren()) do
for i=1,0,-.01 do
v.Transparency=i
wait(.05)
end
end
print("Blocks have regenerated! :)")
end
end
game.Players.admins.Chatted:connect(onChatted

1 comment
Why mark this as a bad post? He didn't break any rules!