FireClient() not firing despite giving a player argument

Title says it all, i’m trying to fireclient to player who touched part however it’s not firing, no errors outputing or anything.

Handle.Touched:Connect(function(Hit)
	if Hit.Name ~= "HumanoidRootPart" then
		print("Not Char")
		elseif Hit.Name == "HumanoidRootPart" then
	 local Player = Hit.Parent
		local LocalPlayer = game.Players:GetPlayerFromCharacter(Player)
		Player:FindFirstChild("Events"):FindFirstChild("FlashBanged"):FireClient(LocalPlayer)
	end
end)

Is your second if statement firing? Could it be as simple as your equality check fails?

1 Like

I figured out the error was from the OnClientEvent script, i forgot to define the LoadAnimation animation object, it was 5am when i was doing this.

Please mark your response as the solution, so people know your question has been solved :slight_smile: