i think you have to change local OtherPlayer = OtherPlayer:GetName() to
local OtherPlayer = Split[2] since OtherPlayer is a nil value but i'm not sure.
Maybe cRoot:Get():FindAndDoWithPlayer(Split[2], functionhere) works. like this:
Not sure if it works though.
local OtherPlayer = Split[2] since OtherPlayer is a nil value but i'm not sure.
Maybe cRoot:Get():FindAndDoWithPlayer(Split[2], functionhere) works. like this:
local dowithplayer = function(OtherPlayer) OtherPlayer:TakeDamage(100, OtherPlayer) end if cRoot:Get():FindAndDoWithPlayer(Split[2], dowithplayer) == false then Player:SendMessage( "Player not found" ) else Player:SendMessage( "Player " .. Split[2] .. " is killed") endEDIT:
Not sure if it works though.