Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create the ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "PersistentGui"
- screenGui.ResetOnSpawn = false -- Ensure it is not destroyed when the player resets
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Create the TextButton
- local textButton = Instance.new("TextButton")
- textButton.Size = UDim2.new(0, 100, 0, 25) -- Size is 2 times smaller
- textButton.Position = UDim2.new(0, 30, 1, -35) -- Adjust position with 20 pixels to the right
- textButton.Text = "Execute Script"
- textButton.Parent = screenGui
- -- Define the script to execute
- local function executeScript()
- getgenv().G = true
- getgenv().Creator = 'https://discord.gg/B3HqPPzFYr - HalloweenGaster'
- -- Set hidden properties
- sethiddenproperty(game.Players.LocalPlayer, "SimulationRadius", 112412400000)
- sethiddenproperty(game.Players.LocalPlayer, "MaxSimulationRadius", 112412400000)
- -- Set health to 0 for other players' humanoids
- for i, d in pairs(game.Workspace:GetDescendants()) do
- if d.ClassName == 'Humanoid' and d.Parent.Name ~= game.Players.LocalPlayer.Name then
- d.Health = 0
- end
- end
- end
- -- Connect the TextButton click event to the executeScript function
- textButton.MouseButton1Click:Connect(executeScript)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement