ElectronUser

Military Simulator GUI [Synapse or Sintinel Required]

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