Hellooooo, I have this little spinny wheel thingy. Its purely for decoration so it isnt a big deal, but im having issues with its spinning.
repeat
task.wait()
until game:GetService("ReplicatedStorage").GameLoaded.OnServerEvent
local TS = game:GetService("TweenService")
script.Parent.Triggered:Connect(function()
script.Parent.Parent.Sound:Play()
script.Parent.Enabled = false
local thing = 0.1
repeat
print("repeat"..thing)
local spin = TS:Create(script.Parent.Parent, TweenInfo.new(thing, Enum.EasingStyle.Linear), {Orientation = script.Parent.Parent.Orientation - Vector3.new(90, 0, 0)})
spin:Play()
spin.Completed:Wait()
thing += 0.1
until thing >= 1
script.Parent.Enabled = true
end)
It just bounces back and forth. I’ve used similar code on other objects and it works fine
ex:
while true do
local Spin1 = TS:Create(script.Parent, TweenInfo.new(2, Enum.EasingStyle.Linear), {Orientation = script.Parent.Orientation + Vector3.new(0, 90, 0)})
Spin1:Play()
Spin1.Completed:Wait()
end