Player argument must be a player object

Hello! Im making it so that a remote event fires for the player, but this isn’t working even though i got :GetPlayerFromCharacter. Why is this happening? Can someone help me? I would really appreciate it.

Thank you.

print(character:FindFirstChild("HitCounter").Value)

		if hit.Parent:FindFirstChild("Blocking").Value == true then
			print('blocking is true on server')
			game.ReplicatedStorage.IsBlocking:FireClient(hit.Parent, hit.Parent.Name, true)
			return
		end
		
		game.ReplicatedStorage.ApplyCamShake:FireClient(game.Players:GetPlayerFromCharacter(hit.Parent))
		hit.Parent.Humanoid:TakeDamage(damage)
	end)
	game.Debris:AddItem(hitbox, linger)
end
1 Like

You aren’t using game.Players:GetPlayerFromCharacter here.


image