Advertisement
vert_gon

Military tycon script

Jan 4th, 2025
674
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.39 KB | None | 0 1
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4. Name = "Military Tycoon VERTGON",
  5. LoadingTitle = "Military Tycoon SCRIPT",
  6. LoadingSubtitle = "by VERTGON",
  7. ConfigurationSaving = {
  8. Enabled = true,
  9. FolderName = nil, -- Create a custom folder for your hub/game
  10. FileName = "VERT GON"
  11. },
  12. Discord = {
  13. Enabled = false,
  14. Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/ABCD would be ABCD
  15. RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  16. },
  17. KeySystem = true, -- Set this to true to use our key system
  18. KeySettings = {
  19. Title = "Ключ",
  20. Subtitle = "VERT HACKER",
  21. ("https://pastebin.com/raw/g8bFivFA"),
  22. FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
  23. SaveKey = true, -- The user's key will be saved, but if you change the key, they will be unable to use your script
  24. GrabKeyFromSite = true, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  25. Key = {"https://pastebin.com/raw/g8bFivFA"} -- List of keys that will be accepted by the system, can be RAW file links (pastebin, github etc) or simple strings ("hello","key22")
  26. }
  27. })
  28.  
  29. local MainTab = Window:CreateTab("Main", nil) -- Title, Image
  30. local MainSection = MainTab:CreateSection("Main")
  31.  
  32. Rayfield:Notify({
  33. Title = "Have you Subscribed to VERT-Man yet?",
  34. Content = "Link in GUI",
  35. Duration = 5,
  36. Image = nil,
  37. Actions = { -- Notification Buttons
  38. Ignore = {
  39. Name = "Yes!",
  40. Callback = function()
  41. print("The user tapped Okay!")
  42. end
  43. },
  44. },
  45. })
  46.  
  47. local Button = MainTab:CreateButton({
  48. Name = "Infinite Jump",
  49. Callback = function()
  50. --Toggles the infinite jump between on or off on every script run
  51. _G.infinjump = not _G.infinjump
  52.  
  53. if _G.infinJumpStarted == nil then
  54. --Ensures this only runs once to save resources
  55. _G.infinJumpStarted = true
  56.  
  57. --Notifies readiness
  58. game.StarterGui:SetCore("SendNotification", {Title="VERT-Hub"; Text="The VERT-Hub Infinite Jump exploit is ready!"; Duration=5;})
  59.  
  60. --The actual infinite jump
  61. local plr = game:GetService('Players').LocalPlayer
  62. local m = plr:GetMouse()
  63. m.KeyDown:connect(function(k)
  64. if _G.infinjump then
  65. if k:byte() == 32 then
  66. humanoid = game:GetService'Players'.LocalPlayer.Character:FindFirstChildOfClass('Humanoid')
  67. humanoid:ChangeState('Jumping')
  68. wait()
  69. humanoid:ChangeState('Seated')
  70. end
  71. end
  72. end)
  73. end
  74. end,
  75. })
  76.  
  77. local Button = MainTab:CreateButton({
  78. Name = "NoClip",
  79. Callback = function()
  80. local Noclip = nil
  81. local Clip = nil
  82.  
  83. function noclip()
  84. Clip = false
  85. local function Nocl()
  86. if Clip == false and game.Players.LocalPlayer.Character ~= nil then
  87. for _,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  88. if v:IsA('BasePart') and v.CanCollide and v.Name ~= floatName then
  89. v.CanCollide = false
  90. end
  91. end
  92. end
  93. wait(0.21) -- basic optimization
  94. end
  95. Noclip = game:GetService('RunService').Stepped:Connect(Nocl)
  96. end
  97.  
  98. function clip()
  99. if Noclip then Noclip:Disconnect() end
  100. Clip = true
  101. end
  102.  
  103. noclip() -- to toggle noclip() and clip()
  104. end,
  105. })
  106.  
  107. local Button = MainTab:CreateButton({
  108. Name = "ctrl+click teleport",
  109. Callback = function()
  110. --Makes sure this script is only executed once
  111. if _G.WRDClickTeleport == nil then
  112. _G.WRDClickTeleport = true
  113.  
  114. local player = game:GetService("Players").LocalPlayer
  115. local UserInputService = game:GetService("UserInputService")
  116. --Wanted to avoid using mouse instance, but UIS^ is very tedious to get mouse hit position
  117. local mouse = player:GetMouse()
  118.  
  119. --Waits until the player's mouse is found
  120. repeat wait() until mouse
  121.  
  122. UserInputService.InputBegan:Connect(function(input, gameProcessed)
  123. if input.UserInputType == Enum.UserInputType.MouseButton1 then
  124. --Only click teleport if the toggle is enabled
  125. if _G.WRDClickTeleport and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
  126. player.Character:MoveTo(Vector3.new(mouse.Hit.x, mouse.Hit.y, mouse.Hit.z))
  127. end
  128. end
  129. end)
  130. --Just toggle instead of re-executing the script
  131. else
  132. _G.WRDClickTeleport = not _G.WRDClickTeleport
  133. --Notify
  134. if _G.WRDClickTeleport then
  135. game.StarterGui:SetCore("SendNotification", {Title="vERT-HUB"; Text="Click teleport enabled"; Duration=5;})
  136. else
  137. game.StarterGui:SetCore("SendNotification", {Title="vERT-HUB"; Text="Click teleport disabled"; Duration=5;})
  138. end
  139. end
  140. end,
  141. })
  142.  
  143. local Slider = MainTab:CreateSlider({
  144. Name = "Walk Speed",
  145. Range = {0, 1000},
  146. Increment = 1,
  147. Suffix = "Speed",
  148. CurrentValue = 16,
  149. Flag = "SpeedSlider", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  150. Callback = function(Value)
  151. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (Value)
  152. end,
  153. })
  154.  
  155. local TeleportTab = Window:CreateTab("Teleports", nil) -- Title, Image
  156. local Section = TeleportTab:CreateSection("BOX")
  157.  
  158. local Button = TeleportTab:CreateButton({
  159. Name = "BOX1",
  160. Callback = function()
  161. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(14, Enum.EasingStyle.Linear)
  162. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-2445.981689453125, 109.64839935302734, -3075.266357421875)}):Play()
  163. end,
  164. })
  165.  
  166. local Button = TeleportTab:CreateButton({
  167. Name = "BOX2",
  168. Callback = function()
  169. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(15, Enum.EasingStyle.Linear)
  170. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-3186.54736328125, 115.6795425415039, -2874.228759765625)}):Play()
  171. end,
  172. })
  173.  
  174. local Button = TeleportTab:CreateButton({
  175. Name = "BOX3",
  176. Callback = function()
  177. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(15, Enum.EasingStyle.Linear)
  178. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-3187.6982421875, 109.64987182617188, -2292.192626953125)}):Play()
  179. end,
  180. })
  181.  
  182. local Button = TeleportTab:CreateButton({
  183. Name = "BOX4",
  184. Callback = function()
  185. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(15, Enum.EasingStyle.Linear)
  186. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-3184.950927734375, 109.11724090576172, -2292.55126953125)}):Play()
  187. end,
  188. })
  189.  
  190. local Button = TeleportTab:CreateButton({
  191. Name = "BOX5",
  192. Callback = function()
  193. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(15, Enum.EasingStyle.Linear)
  194. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-3183.188232421875, 111.37362670898438, -1129.809814453125)}):Play()
  195. end,
  196. })
  197.  
  198. local Button = TeleportTab:CreateButton({
  199. Name = "BOX6",
  200. Callback = function()
  201. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(15, Enum.EasingStyle.Linear)
  202. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-2957.508544921875, 114.72627258300781, -437.306640625)}):Play()
  203. end,
  204. })
  205.  
  206. local Button = TeleportTab:CreateButton({
  207. Name = "BOX7",
  208. Callback = function()
  209. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(15, Enum.EasingStyle.Linear)
  210. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-3398.63427734375, 109.76612091064453, 579.4401245117188)}):Play()
  211. end,
  212. })
  213.  
  214. local Section = TeleportTab:CreateSection("Flags")
  215.  
  216. local Button = TeleportTab:CreateButton({
  217. Name = "Flag 1",
  218. Callback = function()
  219. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(15, Enum.EasingStyle.Linear)
  220. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-964.9931640625, 122.11286926269531, -1760.8275146484375)}):Play()
  221. end,
  222. })
  223.  
  224. local Button = TeleportTab:CreateButton({
  225. Name = "Flag 2",
  226. Callback = function()
  227. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(16, Enum.EasingStyle.Linear)
  228. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(-1533.0635986328125, 122.11286926269531, 112.39423370361328)}):Play()
  229. end,
  230. })
  231.  
  232. local Button = TeleportTab:CreateButton({
  233. Name = "Flag 3",
  234. Callback = function()
  235. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(16, Enum.EasingStyle.Linear)
  236. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(588.4158935546875, 121.29895782470703, 1178.84375)}):Play()
  237. end,
  238. })
  239.  
  240. local Button = TeleportTab:CreateButton({
  241. Name = "Flag 4",
  242. Callback = function()
  243. tweenService, tweenInfo = game:GetService("TweenService"), TweenInfo.new(16.5, Enum.EasingStyle.Linear)
  244. tweenService:Create(game:GetService("Players")["LocalPlayer"].Character.HumanoidRootPart, tweenInfo, {CFrame = CFrame.new(291.7763977050781, 116.50255584716797, 1077.2401123046875)}):Play()
  245. end,
  246. })
  247.  
  248. local EliteTab = Window:CreateTab("PLANE Mission", nil) -- Title, Image
  249. local Section = EliteTab:CreateSection("Mission1")
  250.  
  251. local Toggle = EliteTab:CreateToggle({
  252. Name = "AutoFarm Mission1",
  253. CurrentValue = false,
  254. Flag = "Toggle1", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  255. Callback = function(Value)
  256. local vim = game:GetService('VirtualInputManager')
  257. local input = {
  258. hold = function(key, time)
  259. vim:SendKeyEvent(true, key, false, nil)
  260. wait(time)
  261. vim:SendKeyEvent(false, key, false, nil)
  262. end,
  263. press = function(key)
  264. vim:SendKeyEvent(true, key, false, nil)
  265. wait(0.005)
  266. vim:SendKeyEvent(false, key, false, nil)
  267. end
  268. }
  269.  
  270. local function teleportToGateAndHoldE(gatePosition, waitTime, teleportTime)
  271. local player = game.Players.LocalPlayer
  272. local tweenService = game:GetService("TweenService")
  273. local character = player.Character
  274. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  275.  
  276. -- Teleport to the gate with a tween
  277. local tweenInfo = TweenInfo.new(teleportTime, Enum.EasingStyle.Linear)
  278. local teleportCFrame = CFrame.new(gatePosition)
  279. local teleportTween = tweenService:Create(humanoidRootPart, tweenInfo, {CFrame = teleportCFrame})
  280. teleportTween:Play()
  281. teleportTween.Completed:Wait()
  282.  
  283. -- Simulate holding "E" for 6 seconds using your custom input library
  284. input.press(Enum.KeyCode.E)
  285. input.hold(Enum.KeyCode.E, 1)
  286.  
  287. -- Wait for the specified waitTime
  288. wait(waitTime)
  289. end
  290.  
  291. -- Example usage with the provided coordinates and wait times
  292. local gatePositions = {
  293. {Vector3.new(-2445.981689453125, 109.64839935302734, -3075.266357421875), 4, 10},
  294. {Vector3.new(-3186.54736328125, 115.6795425415039, -2874.228759765625), 5, 10},
  295. {Vector3.new(-3187.6982421875, 109.64987182617188, -2292.192626953125), 5, 10},
  296. {Vector3.new(-3184.950927734375, 109.11724090576172, -2292.55126953125), 5, 10},
  297. {Vector3.new(-3183.188232421875, 111.37362670898438, -1129.809814453125), 5, 10},
  298. {Vector3.new(-2957.508544921875, 114.72627258300781, -437.306640625), 5, 10},
  299. {Vector3.new(-3398.63427734375, 109.76612091064453, 579.4401245117188), 5, 10},
  300. {Vector3.new(-2828.787841796875, 114.63150024414062, 1241.351318359375), 5, 10},
  301. {Vector3.new(-3393.9384765625, 117.606201171875, 1837.5125732421875), 5, 10},
  302. {Vector3.new(-2024.2529296875, 113.43763732910156, 2443.079833984375), 5, 10},
  303. {Vector3.new(-2833.19921875, 113.8492431640625, 1245.7835693359375), 5, 10},
  304. {Vector3.new(-3392.656005859375, 119.56256103515625, 1841.3896484375), 5, 10},
  305. {Vector3.new(-2022.50830078125, 125.46145629882812, 2439.295166015625), 5, 10},
  306. {Vector3.new(-1685.482666015625, 126.95990753173828, 2878.084228515625), 5, 10},
  307. {Vector3.new(-510.5182800292969, 128.45664978027344, 3055.01611328125), 5, 10},
  308. {Vector3.new(-149.5667266845703, 126.45084381103516, 2629.1240234375), 5, 10},
  309. {Vector3.new(193.88519287109375, 111.9211654663086, 1974.110595703125), 5, 10},
  310. {Vector3.new(-167.35073852539062, 113.6697998046875, 966.4462890625), 5, 10},
  311. {Vector3.new(345.2367858886719, 121.04261016845703, 611.0446166992188), 5, 10},
  312. {Vector3.new(744.0103149414062, 113.36486053466797, -199.21188354492188), 5, 10},
  313. {Vector3.new(664.7525024414062, 112.5999526977539, -537.467041015625), 5, 10},
  314. {Vector3.new(230.1134490966797, 104.03642272949219, -1116.2958984375), 5, 10},
  315. {Vector3.new(-3398.63427734375, 109.76612091064453, 579.4401245117188), 5, 10}
  316. }
  317.  
  318. for _, data in pairs(gatePositions) do
  319. teleportToGateAndHoldE(data[1], data[2], data[3])
  320. end
  321. end,
  322. })
Tags: MS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement