Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.5)
- Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
- -- Objects
- local player = game.Players.LocalPlayer
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.Players.player.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 1, 1)
- Frame.Position = UDim2.new(0, 0, 0, 442)
- Frame.Size = UDim2.new(0, 250, 0, 153)
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
- TextButton.BorderColor3 = Color3.new(0, 0, 0)
- TextButton.Position = UDim2.new(0, 25, 0, 52)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Test Button"
- TextButton.TextColor3 = Color3.new(1, 1, 1)
- TextButton.TextSize = 14
- TextButton.MouseButton1Down:connect(function()
- Instance.new("ForceField",game.Players["SlayKillerX66"].Character)
- end)
- TextButton.MouseButton1Click:connect(onButtonClicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement