I have no output.. :/

Im making this for Oxcool's SB, It can run local's and server scripts. My RemoteEvent parents to player's backpack and yet my server client will not remove the player.

--// Server Script , ( Script ) \\ --
Gravity_Cmd(0,'Kick A Player','Kick','Use remote event to kick a Player',function(Plr,Msg)
for _,v in pairs(FindReturnPlayer(Plr,Msg)) do
	if v then
		local Run,Error=ypcall(function()
			local RemoteEvent=Instance.new('RemoteEvent',game:GetService('ServerStorage'))
			RemoteEvent.Name=v.userId
			RemoteEvent:FireClient(Plr)
			print'Fired client!'
			Broadcast_All(5,Plr.Name..' Is Now Nil','Really blue',function() end)
			delay(5,function()
				RemoteEvent:remove()
			end)
		end)
		if not Run then Broadcast_All(5,'WARNING : '..Error,function() end) end
	end
end
end)

-- // Client Script , ( Local script ) \\ --
local plr=game.Players.LocalPlayer

game.ServerStorage:WaitForChild(plr.userId).OnClientEvent:connect(function() -- I believe this is the error
	print'Got fired client'
	if plr.userId == game:GetService('ServerStorage'):WaitForChild(plr.userId) then
		print'Got Player Fired Client!'
		plr:remove()
	end
end)

4 comments

0

Can someone ( Admin,Scholar ) close this question?

0

@Messor There isn't enough votes to close this question. Maybe the next person could close it. Also, I'm not an admin or scholar and I can still close questions. You only need 40 reputation to do so.

0

K, I was thinking of someone gonna close it to prevent spam but whatever.. :P

0

Wait.. D: If my rep didnt glitch and reset down to -2 I could have had above 40+ rep.. NUUUUUU!!!