How do I make a moving WheelSpin Arrow?

  1. What do you want to achieve? Keep it simple and clear!
    I want the white arrow in the video to move when a reward passes under it like how it would in real life or in a 3D environment.

  2. What is the issue? Include screenshots / videos if possible!
    I’m using TweenService to achieve the current effect but it’s slow and breaks if the wheel goes too fast.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Here is what I have rn:

local lastAngle = 0
local tweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Linear, Enum.EasingDirection.In, 1, true)
local arrowTween = TweenService:Create(SpinFrame.Arrow, tweenInfo, {Rotation = -25})

Wheel:GetPropertyChangedSignal("Rotation"):Connect(function()
    if Wheel.Rotation - lastAngle >= 30 then
        lastAngle = Wheel.Rotation
        
        SoundService.ArrowHit:Play()
        arrowTween:Play()
    end
end)

1 Like