Part position tweens the wrong way

i want this part to have the position tweened the same as the first try in the video
i tried changing numbers but it wont work

remote.OnServerEvent:Connect(function()
local God = game:GetService("ReplicatedStorage"):WaitForChild("Models").God:Clone()
	God.Parent = game.Workspace
	
	local Mesh = God["God Hand"]
	Mesh.Position = plr.Character:WaitForChild("HumanoidRootPart").Position + Vector3.new(0, 5, 0)
	Mesh.CFrame = plr.Character:WaitForChild("HumanoidRootPart").CFrame
	Mesh.Orientation = plr.Character:WaitForChild("HumanoidRootPart").Orientation + Vector3.new(0,0,30)
	
local TS = game:GetService("TweenService")

	local info = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false)
	local info2 = TweenInfo.new(0.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false)

	local goal = {Size = Vector3.new(13.464, 17.745, 9.416), Position = plr.Character:WaitForChild("HumanoidRootPart").CFrame.Position + Vector3.new(0, 15, 0)}
	local goal2 = {Position = plr.Character:WaitForChild("Torso").CFrame.Position + Vector3.new(0, 6, -9)}

	local a = TS:Create(Mesh, info, goal)
	local b = TS:Create(Mesh, info2, goal2)

	a:Play()
	wait(2.2)
	b:Play()
	end)

i tried to stop myself and just checking what could be the problem, so far i guess its

local goal2 = {Position = plr.Character:WaitForChild("Torso").CFrame.Position + Vector3.new(0, 6, -9)}

but to be honest i dont really know, how can i fix it?

1 Like

Change the position goal to CFRAME and make it: Torso.CFrame * CFrame.new(0, 6, -9)

This is an easy fix. All you need to do is multiply the objects CFrame position, instead of the normal position. To do this litteraly just change the plus to a * and the vector 3 to CFrame.new().

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.