Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Area of Effect attacks/Hit Debouncing?

Asked by 6 years ago

Alright. So I'm making an attack script, as it stands it spawns a block on you and rapidly changes its CFrame and Size.

The issue that I'm facing is that this thing hits things at breakneck speeds. I'm talking 1700+ hit detections in a second. So I debounced it and it's working ok now. But now I need to find a way to make it so that it only hits people it hasn't hit before.

It needs to be able to hit everyone within its area, but it also can't lag the game out and can't hit the same person twice within 3 seconds

0
I figured out my own solution, in case anyone wants to take and mutilate the code if they have issues: Storm_Cloud 20 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I figured out a temporary solution by doing this : https://pastebin.com/EhS1atL3

However, I sincerely need someone to help me make this more efficient and to tell me what makes it so inefficient so I'm leaving the question open in hopes of that.

If someone can make a nicely cleaned up version of what I'm trying to do here, I'll send some ROBUX their way.

Ad

Answer this question