I’m trying to figure out remote events so i can kill an npc with melee attacks
so far the event doesnt seem to fire and i have no idea if its the code or the rigs
i have been looking at everything i can find and have followed youtube vids and nope
the aim is that the player touches the npc and is also in the animation then the npc will die but im having no luck. remote events seem to be the only way to do this but i dont think i understand it enough and everything i look at just confuses me more
this is the client side part that doesnt fire
function slideDmg(hit)
Bob = hit.Parent
if hit.Parent:FindFirstChild("Humanoid") then
if SlideTrack.IsPlaying then
game.ReplicatedStorage.DamageEvent:FireServer(Bob)
print("fired")
end
end
end
foot.Touched:Connect(slideDmg)
if you need more info just ask my brain is fried with all this right now
It would error if it didnt exist. It doesn’t make it to the firing stage which is what seems to be the problem. hit.Parent probably doesn’t have a humanoid, or SlideTrack is not playing