Hey, I’m wondering how i will get my hitbox from my tool. I am making a combat system with multiple equipable weapons. I am using RaycastHitboxV4 and it requires the hitbox object to be in the parentheses.
local Combat = {}
--// Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
--// Assets
local Modules = ReplicatedStorage:WaitForChild("Modules")
local Assets = ReplicatedStorage:WaitForChild("Assets")
local Animations = Assets:WaitForChild("Animations")
local Sounds = Assets:WaitForChild("Sounds")
--// Modules
local RaycastHitboxV4 = require(Modules.Utility.RaycastHitboxV4)
local VFXModule = require(Modules.Main.VFXHandler)
local RagdollModule = require(Modules.Main.Ragdoll)
local newHitbox = RaycastHitboxV4.new( ) --problem is here
return Combat
game:GetService("Players").PlayerAdded:Connect(function(plr)
local character = plr.Character or plr.CharacterAdded:Wait()
chararacter.DescendantAdded:Connect(function(descendant)
--detect if descendant is tool and then you have the tool and hitbox.
end)
end)