Advertisement
Guest User

roblox

a guest
Apr 1st, 2020
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.58 KB | None | 0 0
  1. uns = Instance.new("TextButton")
  2. local rlist = Instance.new("TextButton")
  3. local infjump = Instance.new("TextButton")
  4. local moresoon = Instance.new("TextButton")
  5. local openclose = Instance.new("TextButton")
  6. --Properties:
  7. MilGUI.Name = "MilGUI"
  8. MilGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  9. MilGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  10. MilGUI.ResetOnSpawn = false
  11.  
  12. Frame.Parent = MilGUI
  13. Frame.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  14. Frame.BorderColor3 = Color3.new(1, 0, 0)
  15. Frame.BorderSizePixel = 5
  16. Frame.Position = UDim2.new(0.0645577759, 0, 0.428977281, 0)
  17. Frame.Size = UDim2.new(0, 200, 0, 209)
  18.  
  19. title.Name = "title"
  20. title.Parent = Frame
  21. title.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  22. title.BorderColor3 = Color3.new(1, 0, 0)
  23. title.BorderSizePixel = 5
  24. title.Size = UDim2.new(0, 200, 0, 39)
  25. title.Font = Enum.Font.GothamSemibold
  26. title.Text = "Military Simulator GUI"
  27. title.TextColor3 = Color3.new(1, 1, 1)
  28. title.TextScaled = true
  29. title.TextSize = 25
  30. title.TextStrokeColor3 = Color3.new(1, 0, 0.0156863)
  31. title.TextStrokeTransparency = 0
  32. title.TextWrapped = true
  33.  
  34. tpguns.Name = "tpguns"
  35. tpguns.Parent = Frame
  36. tpguns.BackgroundColor3 = Color3.new(1, 1, 1)
  37. tpguns.BackgroundTransparency = 1
  38. tpguns.BorderColor3 = Color3.new(1, 0, 0)
  39. tpguns.BorderSizePixel = 0
  40. tpguns.Position = UDim2.new(0, 0, 0.234728873, 0)
  41. tpguns.Size = UDim2.new(0, 200, 0, 50)
  42. tpguns.Font = Enum.Font.Gotham
  43. tpguns.Text = "Teleport guns to Immigrant spawn"
  44. tpguns.TextColor3 = Color3.new(1, 1, 1)
  45. tpguns.TextSize = 25
  46. tpguns.TextStrokeColor3 = Color3.new(1, 0, 0)
  47. tpguns.TextStrokeTransparency = 0
  48. tpguns.TextWrapped = true
  49.  
  50. rlist.Name = "rlist"
  51. rlist.Parent = Frame
  52. rlist.BackgroundColor3 = Color3.new(1, 1, 1)
  53. rlist.BackgroundTransparency = 1
  54. rlist.BorderColor3 = Color3.new(1, 0, 0)
  55. rlist.BorderSizePixel = 0
  56. rlist.Position = UDim2.new(0, 0, 0.533034325, 0)
  57. rlist.Size = UDim2.new(0, 200, 0, 27)
  58. rlist.Font = Enum.Font.Gotham
  59. rlist.Text = "Toggle player list"
  60. rlist.TextColor3 = Color3.new(1, 1, 1)
  61. rlist.TextSize = 25
  62. rlist.TextStrokeColor3 = Color3.new(1, 0, 0)
  63. rlist.TextStrokeTransparency = 0
  64. rlist.TextWrapped = true
  65.  
  66. infjump.Name = "infjump"
  67. infjump.Parent = Frame
  68. infjump.BackgroundColor3 = Color3.new(1, 1, 1)
  69. infjump.BackgroundTransparency = 1
  70. infjump.BorderColor3 = Color3.new(1, 0, 0)
  71. infjump.BorderSizePixel = 0
  72. infjump.Position = UDim2.new(0, 0, 0.72717303, 0)
  73. infjump.Size = UDim2.new(0, 200, 0, 27)
  74. infjump.Font = Enum.Font.Gotham
  75. infjump.Text = "Infinite jump"
  76. infjump.TextColor3 = Color3.new(1, 1, 1)
  77. infjump.TextSize = 25
  78. infjump.TextStrokeColor3 = Color3.new(1, 0, 0)
  79. infjump.TextStrokeTransparency = 0
  80. infjump.TextWrapped = true
  81.  
  82. moresoon.Name = "moresoon"
  83. moresoon.Parent = Frame
  84. moresoon.BackgroundColor3 = Color3.new(1, 1, 1)
  85. moresoon.BackgroundTransparency = 1
  86. moresoon.BorderColor3 = Color3.new(1, 0, 0)
  87. moresoon.BorderSizePixel = 0
  88. moresoon.Position = UDim2.new(0, 0, 0.889852583, 0)
  89. moresoon.Size = UDim2.new(0, 200, 0, 22)
  90. moresoon.Font = Enum.Font.Gotham
  91. moresoon.Text = "Probably no new functions soon"
  92. moresoon.TextColor3 = Color3.new(0, 0, 0)
  93. moresoon.TextSize = 13
  94. moresoon.TextStrokeColor3 = Color3.new(1, 0, 0)
  95. moresoon.TextStrokeTransparency = 0
  96. moresoon.TextWrapped = true
  97.  
  98. openclose.Name = "openclose"
  99. openclose.Parent = MilGUI
  100. openclose.BackgroundColor3 = Color3.new(0.235294, 0.235294, 0.235294)
  101. openclose.BorderColor3 = Color3.new(1, 0, 0)
  102. openclose.BorderSizePixel = 5
  103. openclose.Position = UDim2.new(0.481023878, 0, -0.000863611698, 0)
  104. openclose.Size = UDim2.new(0, 75, 0, 25)
  105. openclose.Font = Enum.Font.SourceSans
  106. openclose.Text = "Close"
  107. openclose.TextColor3 = Color3.new(1, 1, 1)
  108. openclose.TextScaled = true
  109. openclose.TextSize = 14
  110. openclose.TextStrokeColor3 = Color3.new(1, 0, 0)
  111. openclose.TextStrokeTransparency = 0
  112. openclose.TextWrapped = true
  113. -- Scripts:
  114. tpguns.MouseButton1Click:Connect(function()
  115. local d = game.workspace:GetDescendants()
  116.  
  117. for index, descendant in pairs(d) do
  118. if descendant.Name == "PPsh41" then
  119. if descendant.Parent.Name == "Model" then
  120. descendant.Parent.PrimaryPart = descendant.Parent.Part
  121. descendant.Parent:SetPrimaryPartCFrame(CFrame.new(40.11, 3.5, 215.72))
  122. end
  123. end
  124. end
  125.  
  126. for index, descendant in pairs(d) do
  127. if descendant.Name == "TrenchShotgun" then
  128. if descendant.Parent.Name == "Model" then
  129. descendant.Parent.PrimaryPart = descendant.Parent.Part
  130. descendant.Parent:SetPrimaryPartCFrame(CFrame.new(40.11, 6.5, 215.72))
  131. end
  132. end
  133. end
  134. end)
  135.  
  136. rlist.MouseButton1Click:Connect(function()
  137. local list = game.Players.LocalPlayer.PlayerGui.playerList
  138.  
  139. if list.Enabled == true then
  140. game.Players.LocalPlayer.PlayerGui.playerList.Enabled = false
  141. else
  142. game.Players.LocalPlayer.PlayerGui.playerList.Enabled = true
  143. end
  144. end)
  145.  
  146. infjump.MouseButton1Click:Connect(function()
  147. local Player = game:GetService'Players'.LocalPlayer;
  148. local UIS = game:GetService'UserInputService';
  149.  
  150. _G.JumpHeight = 50;
  151.  
  152. function Action(Object, Function) if Object ~= nil then Function(Object); end end
  153.  
  154. UIS.InputBegan:connect(function(UserInput)
  155. if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
  156. Action(Player.Character.Humanoid, function(self)
  157. if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
  158. Action(self.Parent.HumanoidRootPart, function(self)
  159. self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
  160. end)
  161. end
  162. end)
  163. end
  164. end)
  165. end)
  166.  
  167.  
  168. function zigzag(X) return math.acos(math.cos(X*math.pi))/math.pi end
  169.  
  170. counter = 0
  171.  
  172. open = true
  173.  
  174. openclose.MouseButton1Click:Connect(function()
  175. if open == true then
  176. Frame.Visible = false
  177. openclose.Text = "Open"
  178. open = false
  179. else
  180. Frame.Visible = true
  181. openclose.Text = "Close"
  182. open = true
  183. end
  184. end)
  185.  
  186. while true do
  187. wait(0.1)
  188. tpguns.TextStrokeColor3 = Color3.fromHSV(zigzag(counter),1,1)
  189. rlist.TextStrokeColor3 = Color3.fromHSV(zigzag(counter),1,1)
  190. infjump.TextStrokeColor3 = Color3.fromHSV(zigzag(counter),1,1)
  191. title.TextStrokeColor3 = Color3.fromHSV(zigzag(counter),1,1)
  192. title.BorderColor3 = Color3.fromHSV(zigzag(counter),1,1)
  193. moresoon.TextStrokeColor3 = Color3.fromHSV(zigzag(counter),1,1)
  194. Frame.BorderColor3 = Color3.fromHSV(zigzag(counter),1,1)
  195. openclose.BorderColor3 = Color3.fromHSV(zigzag(counter),1,1)
  196. openclose.TextStrokeColor3 = Color3.fromHSV(zigzag(counter),1,1)
  197. counter = counter + 0.01
  198. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement