I'm trying to make an admin script for Void SB, I've gotten all the basics done! Unfortunately, I have run into a roadblock.
I don't know how to get a player from a string! this is super important, and vital for all admin scripts. So, please tell me, how do I get a player from a string?
here is the script:
local cmds = {"t!kill"}
owner.Chatted:Connect(function(msg)
if msg:match(cmds[1]) then
local s = msg:split(" ")
e = s[2]
game.Players.e.Character:BreakJoints()
end
end)

4 comments
Incomplete statement: expected assignment or a function call
at what line?
oups
i updated it, try it and tell me if it works