#How would I make an attack move do damge once the animation reaches the opposing player?
15 messages · Page 1 of 1 (latest)
Wdym by animation reaches the opposing player
Probably means when the attack touches another part or humanoid
If so then use input, then send it to the server with a remote event. Make the denounce on the server and not the client. From there, make a part using instance.new, set the part cframe to the desired cframe (there are articles for this). And when the part is parented to workspace, so:
Local attacked players = {}
for i, touchingPart in workspace:GetPartsInParts(hitbox) do
if touchingPart.Parent: Findfirstchild humanoid and not table.find(attackedplayers, touchingParent.Parent; Findfirstchild ("humanoid") )then humanoid:TakeDamage(x)
I'm on phone so I can't help much sorry
@little sparrow if u don't understand how to do any of that then I would recommend you to learn a little bit of luau
Yes
There is a :touched method
** You are now Level 3! **
It's horrible for hitboxes
a better way to check collission is looping through all the parts that the hitbox is colliding with, and checking if their a player
you do not want to know how may days I wasted trying to figure out why :touched didn't work properly
if you have some code or a video you can show me. So I can use that then pls show me haha