Is this script correct? Im making an admin script and want to know if their are any errors you see.
--[[ Thanks for taking my admin script! Easy to add commands just copy the example that i have for killing yourself and u should be good! P.S: Have some sort of LUA knowledge to edit this!!!!!! create ur commands list here! :) example. kill: --]] local msg = Instance.new("Hint") msg.Name = "Message" msg.Parent = Workspace msg.Text = "Loading GoodCommands Script made by GoodkidMad" wait(10) msg:remove() end function PfP(t) local Sel = {} for i, a in pairs(game.Players:GetChildren()) do if string.lower(string.sub(a.Name,1,string.len(t))) == string.lower(t) then Sel[#Sel + 1] = a end end return Sel end player = game.Players["GoodkidMad"] function commands(t) if string.lower(t) == "kill:me" then game.Workspace[player.Name].Humanoid.Health = 0 elseif string.sub(string.lower(t),1,5) == "kill:" then for i, a in pairs(PfP(string.sub(string.lower(t),6))) do a.Character.Humanoid.Health = 0 end end end player.Chatted:connect(commands) function commands(t) if string.lower(t) == "god:me" then local plrz = GetPlr(plr, msg:lower():sub(5)) for i, v in pairs(plrz) do == "god:" then coroutine.resume(coroutine.create(function() if v and v.Character and v.Character:findFirstChild("Humanoid") then v.CHaracter.Humanoid.Health = 9e9 end end)) end end --GoodkidMad
Closed as Not Constructive by Articulating
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?