I want the part to no more pass through the RootPart of the boss, but make the part start on the RootPart.
What do you want to achieve?
What is the issue?
Current code:
local bossHRP = boss.HumanoidRootPart
Part.CFrame = bossHRP.CFrame -- I want to set its "tip" on the RootPart CFrame, instead of its center.
Part.Size = Vector3.new(2, 1, 36)
heII_ish
(heII_ish)
April 10, 2022, 7:59pm
#2
Push the part out on the Z axis by half of its size
I personally would add in the LookVector of the part, however I believe you could also edit the Pivot of the Part you are creating.
Some code that worked for me:
local HRP = Boss.HumanoidRootPart
Part.Size = Vector3.new(2, 1, 36)
Part.CFrame = HRP.CFrame * CFrame.new(Part.CFrame.LookVector * Part.Size / 2)
Hope this helps you out.