local tweenService = game:GetService("TweenService") local wheel = script.Parent local proximityPrompt = wheel.ProximityPrompt local rewards = {50000, 20000, 100000, 10000, 50000, 20000, 100000, 10000} local isSpinning = false script.Parent.ProximityPrompt.Triggered:Connect(function(player) if isSpinning then return end isSpinning = true local rewardIndex = math.random(1, #rewards) local angle = rewardIndex / #rewards * 360 - (360 / #rewards / 2) local offset = -math.random() * 360 / #rewards local spins = math.random(0, 10) * 360 angle += offset + spins local spinTime = math.random(2, 10) local tweenInfo = TweenInfo.new(spinTime, Enum.EasingStyle.Quint, Enum.EasingDirection.Out) local tween = tweenService:Create(wheel, tweenInfo, {Rotation = Vector3.new(angle, 0, 0)}) tween:Play() tween.Completed:Wait() player.leaderstats.Diamonds.Value += rewards[rewardIndex] isSpinning = false end)