local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local Window = Rayfield:CreateWindow({
Name = "Height Roll & Coin Script",
LoadingTitle = "Loading Script...",
LoadingSubtitle = "Please wait",
ConfigurationSaving = {
Enabled = false
},
Discord = {
Enabled = false
},
KeySystem = false
})
local Tab = Window:CreateTab("Main", 4483362458)
-- ================= [ FEATURE 1: SPIN MENU ] =================
local selectedOption = "Normal"
Tab:CreateDropdown({
Name = "Select Spin Option",
Options = {"Normal", "Lucky", "Super"},
CurrentOption = {"Normal"},
MultipleOptions = false,
Callback = function(Option)
selectedOption = Option[1]
end,
})
Tab:CreateButton({
Name = "Trigger Free Spin",
Callback = function()
local ReplicatedStorage = game:GetService("ReplicatedStorage")
if ReplicatedStorage:FindFirstChild("Remotes") and ReplicatedStorage.Remotes:FindFirstChild("RequestHeightRoll") then
local Event = ReplicatedStorage.Remotes.RequestHeightRoll
Event:FireServer(selectedOption)
Rayfield:Notify({
Title = "Spin Sent!",
Content = "Successfully sent spin request: " .. selectedOption,
Duration = 2.5,
Image = 4483362458,
})
else
Rayfield:Notify({
Title = "Error",
Content = "Remote not found! Make sure you are in the correct game.",
Duration = 4,
Image = 4483362458,
})
end
end,
})
-- ================= [ FEATURE 2: AUTO COIN BRINGER ] =================
local autoCoin = false
Tab:CreateToggle({
Name = "Auto Bring Coins",
CurrentValue = false,
Flag = "AutoCoinToggle",
Callback = function(Value)
autoCoin = Value
if autoCoin then
Rayfield:Notify({
Title = "Auto Coin",
Content = "Auto Bring Coins Enabled.",
Duration = 2,
Image = 4483362458,
})
-- Spawn a new thread so it doesn't freeze the game
task.spawn(function()
while autoCoin do
task.wait(0.1) -- Small delay to prevent crashing/lagging
local Player = game:GetService("Players").LocalPlayer
local Character = Player.Character
local RootPart = Character and Character:FindFirstChild("HumanoidRootPart")
-- Check if player is alive and the folder exists
if RootPart and workspace:FindFirstChild("CoinPickups") then
local coins = workspace.CoinPickups:GetChildren()
for _, coin in ipairs(coins) do
if coin:IsA("PVInstance") then
-- Teleport the coin to the player's HumanoidRootPart
coin:PivotTo(RootPart.CFrame)
end
end
end
end
end)
else
Rayfield:Notify({
Title = "Auto Coin",
Content = "Auto Bring Coins Disabled.",
Duration = 2,
Image = 4483362458,
})
end
end,
})
Comments
doesnt work