Hi. Thanks for the help. I am making a Simple Admin Script using chatted events. I am testing it by making a command where it gives u a bighead just to test it. There was 2 things wrong with it anything u said it would give u a bighead and Its not supposed to do that. 2. The admin didn't work because anyone could do it. So heres the script:)
local Admins = {"iSvenDerp"}
function checkAuthority(name)
for a,v in pairs(Admins) do
if v == name then
return true
end
end
return false
end
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "bighead" or "Bighead" then
player.Character.Head.Mesh.Scale = Vector3.new(3,3,3)
end
end)
end)

6 comments
Thanks u answered 1 of my 2 questions! The admin part works but still if I say anyword it gives me a big head
Ah, sorry about that. Try it now, and it should work.
ok
Thanks! Accepted and upvoted:)
No problem. Glad I could help :P
A more efficient way is to check if the player's an admin as soon as they join the game, that way if they're not an admin the chatted event won't even be listened for.