How can I "Weld" parts to another part being tweened

I have a rotating part done by TweenService. I have other parts that need to be Tweened with it to, I have tried welding every part to it but that doesn’t appear to work.

Any help would be highly appreciated.

local TweenService = game:GetService("TweenService")
local part = script.Parent

local info = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, false)

local properties = {
	Rotation = Vector3.new(0,360,0)
}

local tween = game:GetService("TweenService"):Create(part,info,properties)
tween:Play()
2 Likes

You could try changing properties.Rotation to a CFrame instead of a Vector3

Rotation = CFrame.new(part.Position, 0, 360, 0)
1 Like

I tried that and the part didn’t rotate, but it would make more sense to use CFrame. I’m trying to basically weld it but I searched for it and couldn’t find anything about welding an object to a tweening part. (I have welded each part to the spinning object)

1 Like

I have had this problem a ton and the solution I use is having a While wait() do function running to change the position of the part to the position of the tweened part plus 15 on the Y axis to change the position to where you want it to be.

1 Like

Thats not how CFrames work.

2 Likes

Thank you, I had code like this before but I didn’t think I could change how fast it goes but I can change the amount that it rotates for a slower effect.

repeat
	wait()
	script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.1, 0)
until
false

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