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

How would I use region 3 as a hitbox on a projectile?

Asked by 2 years ago

I am currently trying to create a fireball script where I use a region 3 to detect if any players are in the hitbox when the fireball hits something using a .touched event any ideas on how I would possibly do this I'm not too familiar with Region3. The main issue I'm having is setting the CFrame of the region to the fireball when the fireball hits something.

0
I actually know a function that allows the region3 to detect what it hits so u can put the region3 around the fireball and detect if it hits a player just reply to this and ill get back to u tonight cause i cant remember what the function is called its sum like part.region.OnPartstouched idk but it was like a raycasting thing that had a region3 thing and i used it and now i cant remember it bily117 6 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

Here go to my question ( https://scriptinghelpers.org/questions/127727/why-when-i-jump-in-the-region3-it-prints-so-many-times ) and read the answer cause it can fix your problem to maybe and the thing I was talking about is (game.workspace:FindPartsInRegion3WithIgnoreList) or this (workspace:FindPartsInRegion3WithIgnoreList)

Ad

Answer this question