Hello, I’ve recently started developing a football game but I’ve ran into an issue of hitbox not appearing in the explorer.
Here is my script, everything works except for hitox (hitbox)
local repStor = game:GetService("ReplicatedStorage")
local servStor = game:GetService("ServerStorage")
local character = script.Parent
if character.ClassName == "Model" then
local head = character:FindFirstChild("Head")
if head then
local slide = repStor:FindFirstChild("SlideSound"):Clone()
local motor = repStor:FindFirstChild("BallMotor"):Clone()
local ghost = repStor:FindFirstChild("GhostBall"):Clone()
local hibox = repStor:FindFirstChild("Hibox"):Clone()
local hitox = repStor:WaitForChild("PlrHitbox"):Clone()
slide.Parent = character.HumanoidRootPart
if motor and ghost then
hibox.Parent = hitox
print(hitox.Parent.Name)
hitox.Parent = character
print(hitox.Parent.Name)
motor.Parent = head
ghost.Parent = character
hibox.Part1 = head
motor.Part0 = ghost
motor.Part1 = head
end
end
else
warn("Not a model!")
end
Thanks in advance.