Is this script correct? [closed]
Is this script correct? Im making an admin script and want to know if their are any errors you see.
12 | local msg = Instance.new( "Hint" ) |
16 | msg.Text = "Loading GoodCommands Script made by GoodkidMad" |
23 | for i, a in pairs (game.Players:GetChildren()) do |
24 | if string.lower(string.sub(a.Name, 1 ,string.len(t))) = = string.lower(t) then |
31 | player = game.Players [ "GoodkidMad" ] |
34 | if string.lower(t) = = "kill:me" then |
35 | game.Workspace [ player.Name ] .Humanoid.Health = 0 |
36 | elseif string.sub(string.lower(t), 1 , 5 ) = = "kill:" then |
37 | for i, a in pairs (PfP(string.sub(string.lower(t), 6 ))) do |
38 | a.Character.Humanoid.Health = 0 |
43 | player.Chatted:connect(commands) |
46 | if string.lower(t) = = "god:me" then |
47 | local plrz = GetPlr(plr, msg:lower():sub( 5 )) |
48 | for i, v in pairs (plrz) do = = "god:" then |
49 | coroutine.resume(coroutine.create( function () |
50 | if v and v.Character and v.Character:findFirstChild( "Humanoid" ) then |
51 | v.CHaracter.Humanoid.Health = 9 e 9 |