Why is this tween not working

So what I need is the ball to move some distance from the HumanoidRootPart’s look vector
but it always tween to the origin of the world why is this happening here is the script.

local TS = game:GetService("TweenService")

local player = script.Parent.Parent.Parent.Parent

local Root = player.Character:WaitForChild("HumanoidRootPart")

local info2 = TweenInfo.new(

4,

Enum.EasingStyle.Linear,

Enum.EasingDirection.Out,

0,

false

)

local GOOOL = {

CFrame = Root.CFrame + (Root.CFrame.LookVector*7)

}

script.Parent.MouseButton1Click:Connect(function()

player.Character.Humanoid.WalkSpeed = 0

player.Character.Humanoid.JumpPower = 0

local ball = game.ServerStorage.fireball:Clone()

ball.Parent = workspace

ball.CFrame = Root.CFrame + (Root.CFrame.LookVector*5)

local tweeen = TS:Create(ball, info2, GOOOL)

tweeen:Play()

end)

Try this


local TS = game:GetService("TweenService")

local player = script.Parent.Parent.Parent.Parent

local Root = player.Character:WaitForChild("HumanoidRootPart")

local info2 = TweenInfo.new(

4,

Enum.EasingStyle.Linear,

Enum.EasingDirection.Out,

0,

false

)

local GOOOL = {

CFrame = CFrame.new(Root.Position+ (Root.CFrame.LookVector*7),Root.Position+Root.CFrame.LookVector*100)

}

script.Parent.MouseButton1Click:Connect(function()

player.Character.Humanoid.WalkSpeed = 0

player.Character.Humanoid.JumpPower = 0

local ball = game.ServerStorage.fireball:Clone()

ball.Parent = workspace

ball.CFrame = Root.CFrame + (Root.CFrame.LookVector*5)

local tweeen = TS:Create(ball, info2, GOOOL)

tweeen:Play()

end)

hope this helps! :slight_smile:

no it still does the same thing

Oh, sorry, try this instead :laughing:

local TS = game:GetService("TweenService")

local player = script.Parent.Parent.Parent.Parent

local Root = player.Character:WaitForChild("HumanoidRootPart")

local info2 = TweenInfo.new(

4,

Enum.EasingStyle.Linear,

Enum.EasingDirection.Out,

0,

false

)

local GOOOL = {

CFrame = Root.CFrame*CFrame.new(0,0,-7)

}

script.Parent.MouseButton1Click:Connect(function()

player.Character.Humanoid.WalkSpeed = 0

player.Character.Humanoid.JumpPower = 0

local ball = game.ServerStorage.fireball:Clone()

ball.Parent = workspace

ball.CFrame = Root.CFrame * CFrame.new(0,0,-2.5)

local tweeen = TS:Create(ball, info2, GOOOL)

tweeen:Play()

end)
1 Like

No still ,:pensive: any idea why it does that