How can i check the LocalPlayer touching the spesific part?

The issue is simple, how can i change this into LocalPlayer?

game.Workspace.CellatBaba.Hitbox.Touched:Connect(function(hit)
	if game.Players:GetPlayerFromCharacter(hit.Parent) then

end

i tried to do game.Players.LocalPlayer:GetPlayerFromCharacter(hit.Parent)
and game.Players.LocalPlayer == hit.Parent

Both of these didnt work.

You can try: game.Players:GetPlayerFromCharacter(hit.Parent) == game.Players.LocalPlayer

1 Like