Hi, I’m trying to make a spinning brick but the TweenService is doing something I dont want to.
Script
local tweenservice = game:GetService("TweenService")
local part = script.Parent
local tweeninfo = TweenInfo.new(
0.75,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
-1,
false,
0
)
local spin1 = {
Orientation = Vector3.new(0, 0, 0)
}
local spin2 = {
Orientation = Vector3.new(0, 90, 0)
}
local spin3 = {
Orientation = Vector3.new(0, 180, 0)
}
local spin4 = {
Orientation = Vector3.new(0, -90, 0)
}
local play1 = tweenservice:Create(part,tweeninfo,spin1)
local play2 = tweenservice:Create(part,tweeninfo,spin2)
local play3 = tweenservice:Create(part,tweeninfo,spin3)
local play4 = tweenservice:Create(part,tweeninfo,spin4)
while true do
play2:Play()
wait(0.75)
play3:Play()
wait(0.75)
play4:Play()
wait(0.75)
play1:Play()
wait(0.75)
end
Gif below
How can I fix this? (The spinning brick’s orientation is at 0,0,0 in the beginning)