Hi.. Mi problem is trying to change the HRP CFrame tweening it to a target but I get this error in the console.
Workspace.C1RAXY.LocalScript:15: bad argument #1 to 'new' (Vector3 expected, got CFrame)
and the local script (In a GUI Button) I made is:
local TweenService = game:GetService("TweenService")
local Character = game.Players.LocalPlayer.Character.HumanoidRootPart
local target = workspace.Target.Position
local Info = {
3,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
1,
false,
1
}
local Goals = {
CFrame.new(target.X,target.Y,target.Z)
}
local tween = TweenService:Create(Character,Info,Goals)
script.Parent.MouseButton1Click:Connect(function()
wait(1)
tween:Play()
end)
I tried changing the target property, like this:
local target = workspace.Target.CFrame
I tried changing the Character property, like this:
local Character = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
I tried changing the Goals like this :
local Goals = {
Vector3.new(target.X,target.Y,target.Z)
}
Im pretty noob ik :( but yeah... If anyone has an answer I will be glad to read it.
Thanks.

1 comment
Thx for the Answer.