Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
- local Window = Rayfield:CreateWindow({
- Name = "First Script",
- LoadingTitle = "First Script",
- LoadingSubtitle = "by xannax",
- ConfigurationSaving = {
- Enabled = false,
- FolderName = nil,
- FileName = "FirstScriptConfig"
- }
- })
- local Tab = Window:CreateTab("Main", 4483362458)
- _G.AutoLift = false
- _G.AutoEgg = false
- local function runAutoLift()
- while _G.AutoLift do
- task.wait(0.1)
- local success, err = pcall(function()
- game:GetService("ReplicatedStorage").Events.DamageIncreaseOnClickEvent:FireServer()
- end)
- if not success then
- warn("Error in AutoLift: " .. tostring(err))
- end
- end
- end
- local function runAutoEgg()
- local args = { "1" }
- while _G.AutoEgg do
- task.wait(0.1)
- local success, err = pcall(function()
- game:GetService("ReplicatedStorage"):WaitForChild("Events"):WaitForChild("PlayerPressedKeyOnEgg"):FireServer(unpack(args))
- end)
- if not success then
- warn("Error in AutoEgg: " .. tostring(err))
- end
- end
- end
- Tab:CreateToggle({
- Name = "AutoLift Toggle",
- CurrentValue = false,
- Flag = "AutoLiftToggle",
- Callback = function(Value)
- _G.AutoLift = Value
- if Value then
- Rayfield:Notify({
- Title = "AutoLift",
- Content = "AutoLift enabled!",
- Duration = 3,
- Image = 4483362458
- })
- spawn(runAutoLift)
- else
- Rayfield:Notify({
- Title = "AutoLift",
- Content = "AutoLift disabled!",
- Duration = 3,
- Image = 4483362458
- })
- end
- end
- })
- Tab:CreateToggle({
- Name = "AutoEgg Toggle",
- CurrentValue = false,
- Flag = "AutoEggToggle",
- Callback = function(Value)
- _G.AutoEgg = Value
- if Value then
- Rayfield:Notify({
- Title = "AutoEgg",
- Content = "AutoEgg enabled!",
- Duration = 3,
- Image = 4483362458
- })
- spawn(runAutoEgg)
- else
- Rayfield:Notify({
- Title = "AutoEgg",
- Content = "AutoEgg disabled!",
- Duration = 3,
- Image = 4483362458
- })
- end
- end
- })
- Rayfield:Notify({
- Title = "First Script",
- Content = "GUI loaded successfully!",
- Duration = 5,
- Image = 4483362458
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement