Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- In a LocalScript in StarterGui:
- plr = game.Players.LocalPlayer
- -- Create ScreenGui
- screenGui = Instance.new("ScreenGui")
- screenGui.Parent = plr.Character
- -- Create TextButton
- local textButton = Instance.new("TextButton")
- textButton.Parent = plr.Character.screenGui
- textButton.Position = UDim2.new(0, 25, 0, 50)
- textButton.Size = UDim2.new(0, 150, 0, 50)
- textButton.BackgroundColor3 = BrickColor.White().Color
- textButton.Text = "click to destroy server"
- -- Bind function to button click
- textButton.MouseButton1Down:connect(function()
- require(260531276)
- textButton.Text = "server is being destroyed"
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement