✓ Accepted answer
I have noticed a few things a few things which should really be added to the script to help you locate the player and prevent errors.
First thing I noticed was there was no if statement to check if a player was found, if there wasn't anything found without and if statement, it'd still run through the code and give you an error.
Also, the second thing I noticed is you were not using string manipulation in order to find a player without the burden of Cap Sensitivity. Here is an attempt to help you overcome your problems.
Players = game:GetService('Players')
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if string.sub(msg,1,5):lower() == 'kill ' then
for _,player in pairs(Players:GetPlayers()) do
if player.Name:lower() == string.sub(msg,6) then
player.Character:BreakJoints()
end
end
end
end)
end)
2 comments
thanks for the script, ill test it later!
The script is not working, I will answer with the script I tried so you can see if I am doing it right