Advertisement
Guest User

Untitled

a guest
Jun 25th, 2018
1,824
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 KB | None | 0 0
  1. -- Objects
  2.  
  3. local RedwoodGui = Instance.new("ScreenGui")
  4. local main = Instance.new("Frame")
  5. local open = Instance.new("TextButton")
  6. local close = Instance.new("TextButton")
  7. local WearSheriff = Instance.new("TextButton")
  8. local GiveM60 = Instance.new("TextButton")
  9. local GiveDragunov = Instance.new("TextButton")
  10. local GiveFakeID = Instance.new("TextButton")
  11. local GiveHandcuffs = Instance.new("TextButton")
  12. local GiveACR = Instance.new("TextButton")
  13. local Credits = Instance.new("TextLabel")
  14. local CustomGun = Instance.new("TextLabel")
  15. local Execute = Instance.new("TextButton")
  16. local GunName = Instance.new("TextBox")
  17.  
  18. -- Properties
  19.  
  20. WearSheriff.Name = "WearSheriff"
  21. WearSheriff.Parent = main
  22. WearSheriff.BackgroundColor3 = Color3.new(1, 1, 1)
  23. WearSheriff.Position = UDim2.new(0.755681872, 0, 0.390977442, 0)
  24. WearSheriff.Size = UDim2.new(0, 73, 0, 59)
  25. WearSheriff.Font = Enum.Font.SourceSans
  26. WearSheriff.Text = "Wear Sheriff"
  27. WearSheriff.TextSize = 14
  28.  
  29. GiveM60.Name = "GiveM60"
  30. GiveM60.Parent = main
  31. GiveM60.BackgroundColor3 = Color3.new(1, 1, 1)
  32. GiveM60.Position = UDim2.new(0.0340909064, 0, 0.0413533822, 0)
  33. GiveM60.Size = UDim2.new(0, 73, 0, 59)
  34. GiveM60.Font = Enum.Font.SourceSans
  35. GiveM60.Text = "Give M60"
  36. GiveM60.TextSize = 14
  37.  
  38. GiveDragunov.Name = "GiveDragunov"
  39. GiveDragunov.Parent = main
  40. GiveDragunov.BackgroundColor3 = Color3.new(1, 1, 1)
  41. GiveDragunov.Position = UDim2.new(0.394886345, 0, 0.0413533822, 0)
  42. GiveDragunov.Size = UDim2.new(0, 73, 0, 59)
  43. GiveDragunov.Font = Enum.Font.SourceSans
  44. GiveDragunov.Text = "Give Dragunov"
  45. GiveDragunov.TextSize = 14
  46.  
  47. GiveFakeID.Name = "GiveFakeID"
  48. GiveFakeID.Parent = main
  49. GiveFakeID.BackgroundColor3 = Color3.new(1, 1, 1)
  50. GiveFakeID.Position = UDim2.new(0.755681813, 0, 0.0413533822, 0)
  51. GiveFakeID.Size = UDim2.new(0, 73, 0, 59)
  52. GiveFakeID.Font = Enum.Font.SourceSans
  53. GiveFakeID.Text = "Give Fake ID"
  54. GiveFakeID.TextSize = 14
  55.  
  56. GiveHandcuffs.Name = "GiveHandcuffs"
  57. GiveHandcuffs.Parent = main
  58. GiveHandcuffs.BackgroundColor3 = Color3.new(1, 1, 1)
  59. GiveHandcuffs.Position = UDim2.new(0.394886374, 0, 0.38909775, 0)
  60. GiveHandcuffs.Size = UDim2.new(0, 73, 0, 59)
  61. GiveHandcuffs.Font = Enum.Font.SourceSans
  62. GiveHandcuffs.Text = "Give Handcuffs"
  63. GiveHandcuffs.TextSize = 14
  64.  
  65. GiveACR.Name = "GiveACR"
  66. GiveACR.Parent = main
  67. GiveACR.BackgroundColor3 = Color3.new(1, 1, 1)
  68. GiveACR.Position = UDim2.new(0.0340909064, 0, 0.390977442, 0)
  69. GiveACR.Size = UDim2.new(0, 73, 0, 59)
  70. GiveACR.Font = Enum.Font.SourceSans
  71. GiveACR.Text = "Give ACR"
  72. GiveACR.TextSize = 14
  73.  
  74. Credits.Name = "Credits"
  75. Credits.Parent = main
  76. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  77. Credits.BorderColor3 = Color3.new(1, 1, 1)
  78. Credits.Position = UDim2.new(0.613636374, 0, 0.672932327, 0)
  79. Credits.Size = UDim2.new(0, 123, 0, 82)
  80. Credits.Font = Enum.Font.SourceSans
  81. Credits.Text = "Made by Cowboys"
  82. Credits.TextSize = 14
  83.  
  84. RedwoodGui.Name = "RedwoodGui"
  85. RedwoodGui.Parent = game.CoreGui
  86.  
  87. main.Name = "main"
  88. main.Parent = RedwoodGui
  89. main.Visible = false
  90. main.BackgroundColor3 = Color3.new(1, 1, 1)
  91. main.Position = UDim2.new(0.140061155, 0, 0.231051356, 0)
  92. main.Size = UDim2.new(0, 352, 0, 266)
  93.  
  94. open.Name = "open"
  95. open.Parent = RedwoodGui
  96. open.BackgroundColor3 = Color3.new(1, 1, 1)
  97. open.Position = UDim2.new(0, 0, 0.769957781, 0)
  98. open.Size = UDim2.new(0, 71, 0, 43)
  99. open.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
  100. open.Font = Enum.Font.SourceSans
  101. open.Text = "Open"
  102. open.TextSize = 14
  103.  
  104. close.Name = "close"
  105. close.Parent = RedwoodGui
  106. close.Visible = false
  107. close.BackgroundColor3 = Color3.new(1, 1, 1)
  108. close.Position = UDim2.new(0, 0, 0.769957781, 0)
  109. close.Size = UDim2.new(0, 71, 0, 43)
  110. close.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
  111. close.Font = Enum.Font.SourceSans
  112. close.Text = "Close"
  113. close.TextSize = 14
  114.  
  115. CustomGun.Name = "CustomGun"
  116. CustomGun.Parent = main
  117. CustomGun.BackgroundColor3 = Color3.new(1, 1, 1)
  118. CustomGun.BorderColor3 = Color3.new(1, 1, 1)
  119. CustomGun.Position = UDim2.new(0.0340909064, 0, 0.646616578, 0)
  120. CustomGun.Size = UDim2.new(0, 73, 0, 59)
  121. CustomGun.Font = Enum.Font.SourceSans
  122. CustomGun.Text = "Custom Gun"
  123. CustomGun.TextSize = 14
  124.  
  125. Execute.Name = "Execute"
  126. Execute.Parent = main
  127. Execute.BackgroundColor3 = Color3.new(1, 1, 1)
  128. Execute.Position = UDim2.new(0.289772719, 0, 0.725563884, 0)
  129. Execute.Size = UDim2.new(0, 45, 0, 61)
  130. Execute.Font = Enum.Font.SourceSans
  131. Execute.Text = "Execute"
  132. Execute.TextSize = 14
  133.  
  134. GunName.Name = "GunName"
  135. GunName.Parent = main
  136. GunName.BackgroundColor3 = Color3.new(1, 1, 1)
  137. GunName.Position = UDim2.new(0.0198863633, 0, 0.819548845, 0)
  138. GunName.Size = UDim2.new(0, 83, 0, 36)
  139. GunName.Font = Enum.Font.SourceSans
  140. GunName.Text = "Gun Name Here"
  141. GunName.TextSize = 14
  142.  
  143. open.MouseButton1Down:connect(function()
  144. main.Visible = true
  145. main:TweenPosition(UDim2.new(0.14, 0,0.231, 0), 'Out', 'Bounce', 1, true)
  146. open.Visible = false
  147. close.Visible = true
  148. end)
  149.  
  150. close.MouseButton1Down:connect(function()
  151. main:TweenPosition(UDim2.new(0.14, -700,0.231, 0), 'In', 'Linear', 1, true)
  152. open.Visible = true
  153. close.Visible = false
  154. end)
  155.  
  156. GiveM60.MouseButton1Down:connect(function()
  157. game.Workspace.resources.RemoteFunction:InvokeServer("giveItem", "M60")
  158. end)
  159.  
  160. GiveDragunov.MouseButton1Down:connect(function()
  161. game.Workspace.resources.RemoteFunction:InvokeServer("giveItem", "Dragunov")
  162. end)
  163.  
  164. GiveFakeID.MouseButton1Down:connect(function()
  165. game.Workspace.resources.RemoteFunction:InvokeServer("giveItem", "Fake ID Card")
  166. end)
  167.  
  168. GiveHandcuffs.MouseButton1Down:connect(function()
  169. game.Workspace.resources.RemoteFunction:InvokeServer("giveItem", "Handcuffs")
  170. end)
  171.  
  172. Execute.MouseButton1Down:connect(function()
  173. game.Workspace.resources.RemoteFunction:InvokeServer("giveItem", GunName.Text)
  174. end)
  175.  
  176. WearSheriff.MouseButton1Down:connect(function()
  177. Workspace.resources.RemoteEvent:FireServer("removeHats")
  178. Workspace.resources.RemoteEvent:FireServer("wearPants", "rbxassetid://566262750")
  179. Workspace.resources.RemoteEvent:FireServer("wearShirt", "rbxassetid://229581928")
  180. Workspace.resources.RemoteEvent:FireServer("wearHat", Workspace.troopHat)
  181. end)
  182.  
  183. GiveACR.MouseButton1Down:connect(function()
  184. game.Workspace.resources.RemoteFunction:InvokeServer("giveItem", "ACR")
  185. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement