open source script
Key Required

open source script

[UPD❄️] Dangerous Scooter RidingGreenVR512YTGreenVR512YT 440 views 94 executesUpdated Feb 9, 2026
Unrated
00
Lua Script•167 lines (4970 chars)
-- Rayfield setup
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local rootPart = character:WaitForChild("HumanoidRootPart")

-- Configuration
local WIN_POS = Vector3.new(-3370, 303, 1368)
local COIN_SIZE_THRESHOLD = 0.5
local SEARCH_INTERVAL = 5

-- State
local collectedCoins = 0
local coinsFound = 0
local isAutoCollecting = false
local autoWinEnabled = false
local coinCache = {}
local lastScanTime = 0

-- Utility
local function tweenModel(modelRoot, targetCFrame)
    local info = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
    local tween = TweenService:Create(modelRoot, info, {CFrame = targetCFrame})
    tween:Play()
    tween.Completed:Wait()
end

local function teleportTo(pos)
    if not rootPart then return false end
    local targetCF = CFrame.new(pos + Vector3.new(0, 5, 0))
    tweenModel(rootPart, targetCF)
    return true
end

local function isCoin(obj)
    if not obj:IsA("BasePart") then return false end
    local name = obj.Name:lower()
    local pName = obj.Parent and obj.Parent.Name:lower() or ""
    local isCoinName = (name == "coin" or name == "collectible")
    local isCoinParent = (pName == "collectibles" or pName == "coins")
    return (isCoinName or isCoinParent) and obj.Size.X > COIN_SIZE_THRESHOLD and obj.Size.Z > COIN_SIZE_THRESHOLD
end

local function scanForCoins()
    local now = tick()
    if now - lastScanTime < SEARCH_INTERVAL and #coinCache > 0 then return coinCache end
    lastScanTime = now
    local newCache = {}
    for _, container in ipairs({workspace:FindFirstChild("Collectibles"), workspace:FindFirstChild("Coins")}) do
        if container then
            for _, child in ipairs(container:GetDescendants()) do
                if isCoin(child) then table.insert(newCache, child) end
            end
        end
    end
    coinCache = newCache
    coinsFound = #newCache
    return newCache
end

local function findNearestCoin()
    local coins = scanForCoins()
    local nearest = nil
    local minDist = math.huge
    local myPos = rootPart.Position
    for _, coin in ipairs(coins) do
        if coin and coin.Parent then
            local dist = (coin.Position - myPos).Magnitude
            if dist < minDist then
                minDist = dist
                nearest = coin
            end
        end
    end
    return nearest
end

-- Rayfield GUI
local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
local Window = Rayfield:CreateWindow({
    Name = "Dangerous Scooter",
    LoadingTitle = "Dangerous Scooter",
    LoadingSubtitle = "by GreenVR512",
    ConfigurationSaving = {Enabled = true, FolderName = "GreenVR512", FileName = "DS_Config"},
    KeySystem = false
})

local MainTab = Window:CreateTab("Main", 4483362458)

-- Status
local StatusLabel = MainTab:CreateLabel("Collected: 0 | Coins Found: 0")

-- Buttons
local WinBtn = MainTab:CreateButton({
    Name = "Teleport to WIN",
    Callback = function()
        teleportTo(WIN_POS)
    end
})

local CoinBtn = MainTab:CreateButton({
    Name = "Teleport to Nearest Coin",
    Callback = function()
        local coin = findNearestCoin()
        if coin then
            teleportTo(coin.Position)
            collectedCoins += 1
            StatusLabel:Set("Collected: "..collectedCoins.." | Coins Found: "..coinsFound)
        end
    end
})

local RefreshBtn = MainTab:CreateButton({
    Name = "Refresh & Scan",
    Callback = function()
        scanForCoins()
        StatusLabel:Set("Collected: "..collectedCoins.." | Coins Found: "..coinsFound)
    end
})

-- Toggles
local AutoCollectToggle = MainTab:CreateToggle({
    Name = "Auto Collect",
    CurrentValue = false,
    Flag = "AutoCollectFlag",
    Callback = function(value)
        isAutoCollecting = value
        if value then
            task.spawn(function()
                while isAutoCollecting do
                    local coin = findNearestCoin()
                    if coin then
                        teleportTo(coin.Position)
                        collectedCoins += 1
                        StatusLabel:Set("Auto: "..collectedCoins.." | Coins Found: "..coinsFound)
                    end
                    task.wait(0.5)
                end
            end)
        end
    end
})

local AutoWinToggle = MainTab:CreateToggle({
    Name = "Auto-Win on Death",
    CurrentValue = false,
    Flag = "AutoWinFlag",
    Callback = function(value)
        autoWinEnabled = value
    end
})

-- Auto-Win logic
player.CharacterAdded:Connect(function(newChar)
    character = newChar
    rootPart = character:WaitForChild("HumanoidRootPart")
    if autoWinEnabled then
        task.wait(2)
        teleportTo(WIN_POS)
    end
end)

-- Initialize
scanForCoins()
print("Rayfield Dangerous Scooter Loaded by GreenVR512")

Features & Information

✅ Teleport to WIN – Instantly teleport your character to the win position. ✅ Teleport to Nearest Coin – Finds the closest coin and teleports you to it. ✅ Refresh & Scan – Rescans the workspace for new coins and updates the count. ✅ Auto Collect Toggle – Automatically collects coins as they spawn. ✅ Auto-Win on Death Toggle – Teleports you to the WIN spot automatically after respawning. ✅ Status Label – Displays collected coins and total coins found. ✅ Rayfield Integration – Clean, professional UI with draggable window. ✅ Configuration Saving – Remembers your toggle and settings between sessions. ✅ By GreenVR512 – Custom header showing your name. ✅ Optimized Coin Scanning – Searches common containers first to improve performance. ✅ Smooth Teleporting – Uses TweenService for smooth movement to coins or WIN. ✅ Throttled Auto-Collect – Collects coins every 0.5 seconds to avoid overloading.

Community Comments (0)

No comments yet for this script.

More Scripts for [UPD❄️] Dangerous Scooter Riding