Well my script and error for it are below, help if you can...
print("WOOOO TEH SCRIPT WORKED!!!")
permission = {"LuigiFan"}
function checkOkToLetIn(name)
for i = 1,#permission do
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end
function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name)
msg = string.lower(msg)
if not (checkOkToLetIn(source)) then return end
if (msg == "invincible") then
local p = game.Workspace:findFirstChild(speaker.Name)
p.Humanoid.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999999999999
p.Humanoid.Health = 999999999999999999999999999999999999999999999999999999999999999999999999999
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect
end
function(msg, recipient) onChatted(msg, recipient, newPlayer) end
game.Players.ChildAdded:connect(onPlayerEntered)
Heres the error : Workspace.Command Scripts *DONT UNGROUP*.Commands:27: function arguments expected near 'end'
=P-LuigiFan-=P |