Advertisement
OofeyDoofy

Untitled

Jan 22nd, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. wait(0.5)
  2. Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  3.  
  4. -- Objects
  5.  
  6. local player = game.Players.LocalPlayer
  7. local ScreenGui = Instance.new("ScreenGui")
  8. local Frame = Instance.new("Frame")
  9. local TextButton = Instance.new("TextButton")
  10.  
  11. -- Properties
  12.  
  13. ScreenGui.Parent = game.Players.player.PlayerGui
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  17. Frame.Position = UDim2.new(0, 0, 0, 442)
  18. Frame.Size = UDim2.new(0, 250, 0, 153)
  19.  
  20. TextButton.Parent = Frame
  21. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  22. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  23. TextButton.Position = UDim2.new(0, 25, 0, 52)
  24. TextButton.Size = UDim2.new(0, 200, 0, 50)
  25. TextButton.Font = Enum.Font.SourceSans
  26. TextButton.Text = "Test Button"
  27. TextButton.TextColor3 = Color3.new(1, 1, 1)
  28. TextButton.TextSize = 14
  29.  
  30. TextButton.MouseButton1Down:connect(function()
  31. Instance.new("ForceField",game.Players["SlayKillerX66"].Character)
  32. end)
  33.  
  34. TextButton.MouseButton1Click:connect(onButtonClicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement