Advertisement
RyanDaCoder

Ryanawesome222's The Gun!

Jul 19th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. local bill = Instance.new("SurfaceGui")
  2. bill.Name = "BillBoard"
  3. local Text = Instance.new("TextLabel")
  4. Text.Text = "Playing: The Gun, By Ryanawesome222"
  5. Text.BackgroundTransparency = 1
  6. Text.Parent = game.Players.LocalPlayer.Character.Head
  7.  
  8. -- Objects
  9.  
  10. local ScreenGui = Instance.new("ScreenGui")
  11. local TextLabel = Instance.new("TextLabel")
  12. local shoot = Instance.new("TextButton")
  13. local fire = Instance.new("TextButton")
  14.  
  15. -- Properties
  16.  
  17. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  18.  
  19. TextLabel.Parent = ScreenGui
  20. TextLabel.Active = true
  21. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  22. TextLabel.Draggable = true
  23. TextLabel.Position = UDim2.new(0, 95, 0, 59)
  24. TextLabel.Size = UDim2.new(0, 200, 0, 26)
  25. TextLabel.Font = Enum.Font.SourceSans
  26. TextLabel.FontSize = Enum.FontSize.Size14
  27. TextLabel.Text = "The Gun"
  28. TextLabel.TextSize = 14
  29.  
  30. shoot.Name = "shoot"
  31. shoot.Parent = TextLabel
  32. shoot.BackgroundColor3 = Color3.new(1, 1, 1)
  33. shoot.Position = UDim2.new(0, 0, 0, 26)
  34. shoot.Size = UDim2.new(0, 200, 0, 24)
  35. shoot.Font = Enum.Font.SourceSans
  36. shoot.FontSize = Enum.FontSize.Size14
  37. shoot.Text = "Random Shoot Time"
  38. shoot.TextSize = 14
  39.  
  40. fire.Name = "fire"
  41. fire.Parent = TextLabel
  42. fire.BackgroundColor3 = Color3.new(1, 1, 1)
  43. fire.Position = UDim2.new(0, 0, 0, 52)
  44. fire.Size = UDim2.new(0, 200, 0, 23)
  45. fire.Font = Enum.Font.SourceSans
  46. fire.FontSize = Enum.FontSize.Size14
  47. fire.Text = "Fire"
  48. fire.TextSize = 14
  49.  
  50. fire.MouseButton1Click:connect(function()
  51. game.Players.LocalPlayer.Character.Head:Destroy()
  52. end)
  53.  
  54. shoot.MouseButton1Click:connect(function()
  55. local r = {"30","10","2","20","5","24"}
  56. wait(r)
  57. game.Players.LocalPlayer.Character.Head:Destroy()
  58. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement