Hello, I'm attempting to make a Turret which when Idle will rotate side to side using the 'TweenService' however, ONLY the primary part of the model rotates as seen here: https://gyazo.com/17944f4ec016fb5147ecf070551fc04f
Here is my code:
local Target = script.Parent.Target
local tweenService = game:GetService("TweenService")
local TurretHead = script.Parent.Parent:FindFirstChild("TurretHead")
local tweenInfo = TweenInfo.new( -- For the turret head
4, -- Length
Enum.EasingStyle.Quint, -- Easing Style of Tween
Enum.EasingDirection.InOut, -- Easing Direction of Tween
0, -- Num of times repeated
true, -- Should the tween reverse?
.1 -- Delay between each tween
)
local TurretProps = {
--TurretHead:SetPrimaryPartCFrame(0, 45, -90)
Orientation = Vector3.new(0,45,-90)
}
local Tween = tweenService:Create(TurretHead.PrimaryPart,tweenInfo,TurretProps)
Tween:Play()
And here is a screenshot of my Hierarchy: https://gyazo.com/5d0d1e2a47991dc3a26ac6e96af62df6
If anyone knows how to fix this please let me know. Because i am confused. I thought other parts associated to the model with a primary part would rotate along side the primary part.
BTW: I have also welded all the Parts connected to the TurretHead in attempt to also get the parts rotating along side it but still no luck.
