How could i make a hitbox for a large/small projectile?

Hello, how can i make a stable hitbox for my projectiles. Whats one of the best ways to make a projectile hitbox?

Any help whould be greatly apreciated!

You can create a part with instance, make it invisible, change it’s size, and then weld it to the projectile.

1 Like

Make a part with Instance.new when you fire your weapon, and size it to your liking of the Hitbox.

Then set these properties on the part:

part.Transparency = 1
part.Massless = true
part.Anchored = false
part.CanTouch = false
part.CanCollide = false --

Now you can weld it to your projectile.

local projectile = idk -- Set to your projectile
local hitbox = idk -- Set to your part you just made
local weld = Instance.new("Weld")
weld.Part0 = projectile
weld.Part1 = hitbox 
weld.Parent = projectile

Please reply if I did anything wrong, thanks.

2 Likes

Well hitboxes arent the best way of detecting fast projectiles because of rendering isues, but in my case i used a slow projectile and it worked quite amazing! Thanks!

1 Like