-- Services local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer -- ========================================== -- CONFIGURATION -- ========================================== local TARGET_BLOODLINES = { ["Rindoran"] = true, ["Shindai-Yang"] = true, ["Borumaki-Gaiden"] = true, ["Deva-Sengoku"] = true, } local SPIN_DELAY = 1.2 -- Time in seconds between rolls local autoRolling = false -- ========================================== -- FUNCTIONS -- ========================================== -- Function to check if the rolled item is in our target list local function isTargetItem(itemName) return TARGET_BLOODLINES[itemName] == true end -- Main Auto-Roll Loop local function startAutoRoll() if autoRolling then return end autoRolling = true print("⚡ Auto-Roll Started...") while autoRolling do -- Check if player has remaining spins (Update path to match your Leaderstats/Data structure) local spinsLeft = LocalPlayer:FindFirstChild("Data") and LocalPlayer.Data:FindFirstChild("Spins") if spinsLeft and spinsLeft.Value <= 0 then warn("❌ Out of spins! Stopping auto-roll.") autoRolling = false break end ------------------------------------------------------------------- -- REMOTE EVENT TRIGGER -- Replace 'SpinRemote' with the actual RemoteFunction/RemoteEvent path ------------------------------------------------------------------- -- Example (RemoteFunction approach): -- local rolledItem = ReplicatedStorage.Remotes.SpinRemote:InvokeServer() -- Simulated placeholder variable: local rolledItem = "Sample-Item" ------------------------------------------------------------------- print("Rolled: " .. tostring(rolledItem)) -- Verify if the item is one of our targets if isTargetItem(rolledItem) then print("🎉 Target landed: " .. rolledItem .. "! Stopping auto-roll.") autoRolling = false break end task.wait(SPIN_DELAY) end end -- Function to stop rolling manually local function stopAutoRoll() autoRolling = false print("🛑 Auto-Roll manually stopped.") end -- ========================================== -- EXECUTION EXAMPLES -- ========================================== -- Call startAutoRoll() to begin, and stopAutoRoll() to halt. -- You can bind these to UI Buttons or Keybinds (e.g., UserInputService).