You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? :
I’m trying to make a hitbox tween in front of the player to make a projectile -
What is the issue? :
the thing is, i do not know… there are no errors or results besides the object being created -
What solutions have you tried so far? :
I tried using multiple different tween scripts as well as a much longer one in the past, all of which have failed
This is the script:
local Hitbox = script:WaitForChild("HitBox"):Clone()
Hitbox.CFrame = HumanoidRP.CFrame * CFrame.new(0,0,-2)
Hitbox.Parent = Folder
local weld = Instance.new("ManualWeld")
weld.Part0 = Hitbox
weld.Part1 = HumanoidRP
weld.C0 = weld.Part0.CFrame:ToObjectSpace(weld.Part1.CFrame)
weld.Parent = weld.Part0
game.TweenService:Create(Hitbox,TweenInfo.new(1,Enum.EasingStyle.Linear),
{CFrame = HumanoidRP.CFrame * CFrame.new(0,0,-10)})