The pivot point does not affect the rotation when rotated by a script

heres my problem i am tying to rotate a mesh back and fourth that has a pivot point specifically a position pivot but the rotation is not affected by it when it is rotated by a script

i dont have any solutions and here is my script if you want it

local part = script.Parent.Boat local tweenInfo = TweenInfo.new(3,Enum.EasingStyle.Back,Enum.EasingDirection.Out) --your tween info local tween1 = game:GetService("TweenService"):Create(part, tweenInfo,{Orientation = Vector3.new(0,104.782,30)}) local tween2 = game:GetService("TweenService"):Create(part, tweenInfo,{Orientation = Vector3.new(0,104.782,-30)}) while true do	tween1:Play() wait(2)	tween2:Play() end 
1 Like

is this a model? and use waitforchild

local part = script.Parent:WaitForChild("Boat") 

Sorry for the late reply this is a mesh inside a model