CaraHaxx

Armored Patrol GUI

Nov 24th, 2019
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.26 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local Main = Instance.new("Frame")
  6. local Hi1 = Instance.new("Frame")
  7. local GuiName = Instance.new("TextLabel")
  8. local Hi2 = Instance.new("Frame")
  9. local Credit = Instance.new("TextLabel")
  10. local RedBaseTp = Instance.new("TextButton")
  11. local RedBaseRoofTp = Instance.new("TextButton")
  12. local BlueBaseTp = Instance.new("TextButton")
  13. local BlueBaseRoofTp = Instance.new("TextButton")
  14. local WalkSpeedScript = Instance.new("TextButton")
  15. local Flyscript = Instance.new("TextButton")
  16. local NormalWalkSpeed = Instance.new("TextButton")
  17. local Red1 = Instance.new("Frame")
  18. local RedTeam = Instance.new("TextLabel")
  19. local Blue1 = Instance.new("Frame")
  20. local BlueTeam = Instance.new("TextLabel")
  21. local LocalPlayerMisc1 = Instance.new("Frame")
  22. local LocalPlayer = Instance.new("TextLabel")
  23. local OtherTps = Instance.new("Frame")
  24. local OtherTps_2 = Instance.new("TextLabel")
  25. local AlphaTp = Instance.new("TextButton")
  26. local BravoTp = Instance.new("TextButton")
  27. local CharlieTp = Instance.new("TextButton")
  28. local ExitButton = Instance.new("TextButton")
  29. local OpenFrame = Instance.new("Frame")
  30. local Open = Instance.new("TextButton")
  31. --Properties:
  32. ScreenGui.Parent = game.CoreGui
  33.  
  34. Main.Name = "Main"
  35. Main.Parent = ScreenGui
  36. Main.Active = true
  37. Main.BackgroundColor3 = Color3.new(0, 0, 0)
  38. Main.BackgroundTransparency = 0.20000000298023
  39. Main.Position = UDim2.new(0.372185528, 0, 0.103669062, 0)
  40. Main.Size = UDim2.new(0, 652, 0, 396)
  41. Main.Visible = false
  42. Main.Draggable = true
  43.  
  44. Hi1.Name = "Hi1"
  45. Hi1.Parent = Main
  46. Hi1.BackgroundColor3 = Color3.new(0, 0.0352941, 0.74902)
  47. Hi1.BorderColor3 = Color3.new(0, 0.054902, 0.87451)
  48. Hi1.BorderSizePixel = 0
  49. Hi1.Position = UDim2.new(-0.00330432365, 0, -0.0026376897, 0)
  50. Hi1.Size = UDim2.new(0, 654, 0, 40)
  51.  
  52. GuiName.Name = "Gui Name"
  53. GuiName.Parent = Hi1
  54. GuiName.BackgroundColor3 = Color3.new(1, 1, 1)
  55. GuiName.BackgroundTransparency = 1
  56. GuiName.BorderSizePixel = 0
  57. GuiName.Position = UDim2.new(0.000360219768, 0, 0, 0)
  58. GuiName.Size = UDim2.new(0, 651, 0, 39)
  59. GuiName.Font = Enum.Font.Cartoon
  60. GuiName.Text = "Armored Patrol v9.5 GUI v.1.0.0"
  61. GuiName.TextColor3 = Color3.new(1, 1, 1)
  62. GuiName.TextSize = 20
  63. GuiName.TextWrapped = true
  64.  
  65. Hi2.Name = "Hi2"
  66. Hi2.Parent = Main
  67. Hi2.BackgroundColor3 = Color3.new(0, 0.0352941, 0.74902)
  68. Hi2.BorderColor3 = Color3.new(0, 0.054902, 0.87451)
  69. Hi2.BorderSizePixel = 0
  70. Hi2.Position = UDim2.new(-0.00166716916, 0, 0.907947242, 0)
  71. Hi2.Size = UDim2.new(0, 653, 0, 40)
  72.  
  73. Credit.Name = "Credit"
  74. Credit.Parent = Hi2
  75. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  76. Credit.BackgroundTransparency = 1
  77. Credit.BorderSizePixel = 0
  78. Credit.Position = UDim2.new(-0.00163458323, 0, -0.0267578121, 0)
  79. Credit.Size = UDim2.new(0, 653, 0, 41)
  80. Credit.Font = Enum.Font.Cartoon
  81. Credit.Text = "Made by Toxic#8476 [Enjoy!! :D] (STILL WIP)"
  82. Credit.TextColor3 = Color3.new(1, 1, 1)
  83. Credit.TextSize = 16
  84. Credit.TextWrapped = true
  85.  
  86. RedBaseTp.Name = "Red Base Tp"
  87. RedBaseTp.Parent = Main
  88. RedBaseTp.BackgroundColor3 = Color3.new(0.784314, 0, 0)
  89. RedBaseTp.BorderSizePixel = 0
  90. RedBaseTp.Position = UDim2.new(0.0116356825, 0, 0.237544239, 0)
  91. RedBaseTp.Size = UDim2.new(0, 165, 0, 38)
  92. RedBaseTp.Font = Enum.Font.Cartoon
  93. RedBaseTp.Text = "Red Base Tp"
  94. RedBaseTp.TextColor3 = Color3.new(1, 1, 1)
  95. RedBaseTp.TextSize = 18
  96. RedBaseTp.MouseButton1Down:connect(function()
  97. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(189.769943, 103.899895, 178.279953)
  98. end)
  99.  
  100. RedBaseRoofTp.Name = "Red Base Roof Tp"
  101. RedBaseRoofTp.Parent = Main
  102. RedBaseRoofTp.BackgroundColor3 = Color3.new(0.784314, 0, 0)
  103. RedBaseRoofTp.BorderSizePixel = 0
  104. RedBaseRoofTp.Position = UDim2.new(0.0116356825, 0, 0.36939472, 0)
  105. RedBaseRoofTp.Size = UDim2.new(0, 165, 0, 38)
  106. RedBaseRoofTp.Font = Enum.Font.Cartoon
  107. RedBaseRoofTp.Text = "Red Base Roof Tp"
  108. RedBaseRoofTp.TextColor3 = Color3.new(1, 1, 1)
  109. RedBaseRoofTp.TextSize = 18
  110. RedBaseRoofTp.MouseButton1Down:connect(function()
  111. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(264.14679, 183.90004, 193.174545)
  112. end)
  113.  
  114. BlueBaseTp.Name = "Blue Base Tp"
  115. BlueBaseTp.Parent = Main
  116. BlueBaseTp.BackgroundColor3 = Color3.new(0.0431373, 0.0784314, 0.784314)
  117. BlueBaseTp.BorderSizePixel = 0
  118. BlueBaseTp.Position = UDim2.new(0.373393953, 0, 0.237544239, 0)
  119. BlueBaseTp.Size = UDim2.new(0, 165, 0, 38)
  120. BlueBaseTp.Font = Enum.Font.Cartoon
  121. BlueBaseTp.Text = "Blue Base Tp"
  122. BlueBaseTp.TextColor3 = Color3.new(1, 1, 1)
  123. BlueBaseTp.TextSize = 18
  124. BlueBaseTp.MouseButton1Down:connect(function()
  125. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2811.38281, 103.899506, 2825.04932)
  126. end)
  127.  
  128. BlueBaseRoofTp.Name = "Blue Base Roof Tp"
  129. BlueBaseRoofTp.Parent = Main
  130. BlueBaseRoofTp.BackgroundColor3 = Color3.new(0.0431373, 0.0784314, 0.784314)
  131. BlueBaseRoofTp.BorderSizePixel = 0
  132. BlueBaseRoofTp.Position = UDim2.new(0.373283327, 0, 0.36939472, 0)
  133. BlueBaseRoofTp.Size = UDim2.new(0, 165, 0, 38)
  134. BlueBaseRoofTp.Font = Enum.Font.Cartoon
  135. BlueBaseRoofTp.Text = "Blue Base Roof Tp"
  136. BlueBaseRoofTp.TextColor3 = Color3.new(1, 1, 1)
  137. BlueBaseRoofTp.TextSize = 18
  138. BlueBaseRoofTp.MouseButton1Down:connect(function()
  139. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2736.55298, 183.900299, 2808.66406)
  140. end)
  141.  
  142. WalkSpeedScript.Name = "WalkSpeed Script"
  143. WalkSpeedScript.Parent = Main
  144. WalkSpeedScript.BackgroundColor3 = Color3.new(0.666667, 0.054902, 0.635294)
  145. WalkSpeedScript.BorderSizePixel = 0
  146. WalkSpeedScript.Position = UDim2.new(0.723429501, 0, 0.235341623, 0)
  147. WalkSpeedScript.Size = UDim2.new(0, 84, 0, 38)
  148. WalkSpeedScript.Font = Enum.Font.Cartoon
  149. WalkSpeedScript.Text = "Speed"
  150. WalkSpeedScript.TextColor3 = Color3.new(1, 1, 1)
  151. WalkSpeedScript.TextSize = 18
  152. WalkSpeedScript.MouseButton1Down:connect(function()
  153. while wait(0.1)do
  154. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 200
  155. end
  156. end)
  157.  
  158.  
  159. Flyscript.Name = "Fly script"
  160. Flyscript.Parent = Main
  161. Flyscript.BackgroundColor3 = Color3.new(0.666667, 0.054902, 0.635294)
  162. Flyscript.BorderSizePixel = 0
  163. Flyscript.Position = UDim2.new(0.735699475, 0, 0.368803889, 0)
  164. Flyscript.Size = UDim2.new(0, 165, 0, 38)
  165. Flyscript.Font = Enum.Font.Cartoon
  166. Flyscript.Text = "Fly"
  167. Flyscript.TextColor3 = Color3.new(1, 1, 1)
  168. Flyscript.TextSize = 18
  169. Flyscript.MouseButton1Down:connect(function()
  170. repeat wait()
  171. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  172. local mouse = game.Players.LocalPlayer:GetMouse()
  173. repeat wait() until mouse
  174. local plr = game.Players.LocalPlayer
  175. local torso = plr.Character.Head
  176. local flying = false
  177. local deb = true
  178. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  179. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  180. local maxspeed = 400
  181. local speed = 500
  182.  
  183. function Fly()
  184. local bg = Instance.new("BodyGyro", torso)
  185. bg.P = 9e4
  186. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  187. bg.cframe = torso.CFrame
  188. local bv = Instance.new("BodyVelocity", torso)
  189. bv.velocity = Vector3.new(0,0.1,0)
  190. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  191. repeat wait()
  192. plr.Character.Humanoid.PlatformStand = true
  193. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  194. speed = speed+.5+(speed/maxspeed)
  195. if speed > maxspeed then
  196. speed = maxspeed
  197. end
  198. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  199. speed = speed-1
  200. if speed < 0 then
  201. speed = 0
  202. end
  203. end
  204. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  205. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  206. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  207. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  208. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  209. else
  210. bv.velocity = Vector3.new(0,0.1,0)
  211. end
  212. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  213. until not flying
  214. ctrl = {f = 0, b = 0, l = 0, r = 0}
  215. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  216. speed = 0
  217. bg:Destroy()
  218. bv:Destroy()
  219. plr.Character.Humanoid.PlatformStand = false
  220. end
  221. mouse.KeyDown:connect(function(key)
  222. if key:lower() == "e" then
  223. if flying then flying = false
  224. else
  225. flying = true
  226. Fly()
  227. end
  228. elseif key:lower() == "w" then
  229. ctrl.f = 1
  230. elseif key:lower() == "s" then
  231. ctrl.b = -1
  232. elseif key:lower() == "a" then
  233. ctrl.l = -1
  234. elseif key:lower() == "d" then
  235. ctrl.r = 1
  236. end
  237. end)
  238. mouse.KeyUp:connect(function(key)
  239. if key:lower() == "w" then
  240. ctrl.f = 0
  241. elseif key:lower() == "s" then
  242. ctrl.b = 0
  243. elseif key:lower() == "a" then
  244. ctrl.l = 0
  245. elseif key:lower() == "d" then
  246. ctrl.r = 0
  247. end
  248. end)
  249. Fly()
  250. end)
  251.  
  252. NormalWalkSpeed.Name = "JumpPower"
  253. NormalWalkSpeed.Parent = Main
  254. NormalWalkSpeed.BackgroundColor3 = Color3.new(0.666667, 0.054902, 0.635294)
  255. NormalWalkSpeed.BorderSizePixel = 0
  256. NormalWalkSpeed.Position = UDim2.new(0.875269949, 0, 0.235341623, 0)
  257. NormalWalkSpeed.Size = UDim2.new(0, 80, 0, 38)
  258. NormalWalkSpeed.Font = Enum.Font.Cartoon
  259. NormalWalkSpeed.Text = "JumpPower"
  260. NormalWalkSpeed.TextColor3 = Color3.new(1, 1, 1)
  261. NormalWalkSpeed.TextSize = 14
  262. NormalWalkSpeed.MouseButton1Down:connect(function()
  263. while wait(0.1)do
  264. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 200
  265. end
  266. end)
  267.  
  268. Red1.Name = "Red1"
  269. Red1.Parent = Main
  270. Red1.BackgroundColor3 = Color3.new(0, 0, 0)
  271. Red1.BackgroundTransparency = 1
  272. Red1.BorderSizePixel = 0
  273. Red1.Position = UDim2.new(-0.00142120873, 0, 0.0975190252, 0)
  274. Red1.Size = UDim2.new(0, 181, 0, 43)
  275.  
  276. RedTeam.Name = "Red Team"
  277. RedTeam.Parent = Red1
  278. RedTeam.BackgroundColor3 = Color3.new(0.764706, 0, 0)
  279. RedTeam.BorderSizePixel = 0
  280. RedTeam.Position = UDim2.new(0.00280916691, 0, 0.00676095486, 0)
  281. RedTeam.Size = UDim2.new(0, 181, 0, 42)
  282. RedTeam.Font = Enum.Font.Cartoon
  283. RedTeam.Text = "Red Team "
  284. RedTeam.TextColor3 = Color3.new(1, 1, 1)
  285. RedTeam.TextSize = 20
  286.  
  287. Blue1.Name = "Blue1"
  288. Blue1.Parent = Main
  289. Blue1.BackgroundColor3 = Color3.new(0, 0, 0)
  290. Blue1.BackgroundTransparency = 1
  291. Blue1.BorderSizePixel = 0
  292. Blue1.Position = UDim2.new(0.360541999, 0, 0.097518988, 0)
  293. Blue1.Size = UDim2.new(0, 181, 0, 43)
  294.  
  295. BlueTeam.Name = "Blue Team"
  296. BlueTeam.Parent = Blue1
  297. BlueTeam.BackgroundColor3 = Color3.new(0.0705882, 0.105882, 0.764706)
  298. BlueTeam.BorderSizePixel = 0
  299. BlueTeam.Position = UDim2.new(0.00154784322, 0, 0.00423576683, 0)
  300. BlueTeam.Size = UDim2.new(0, 181, 0, 42)
  301. BlueTeam.Font = Enum.Font.Cartoon
  302. BlueTeam.Text = "Blue Team"
  303. BlueTeam.TextColor3 = Color3.new(1, 1, 1)
  304. BlueTeam.TextSize = 20
  305.  
  306. LocalPlayerMisc1.Name = "LocalPlayer/Misc1"
  307. LocalPlayerMisc1.Parent = Main
  308. LocalPlayerMisc1.BackgroundColor3 = Color3.new(0, 0, 0)
  309. LocalPlayerMisc1.BackgroundTransparency = 1
  310. LocalPlayerMisc1.BorderSizePixel = 0
  311. LocalPlayerMisc1.Position = UDim2.new(0.719437659, 0, 0.0975189954, 0)
  312. LocalPlayerMisc1.Size = UDim2.new(0, 182, 0, 43)
  313.  
  314. LocalPlayer.Name = "Local Player"
  315. LocalPlayer.Parent = LocalPlayerMisc1
  316. LocalPlayer.BackgroundColor3 = Color3.new(0.654902, 0.0352941, 0.592157)
  317. LocalPlayer.BorderSizePixel = 0
  318. LocalPlayer.Position = UDim2.new(0.0111959223, 0, 0.0254739821, 0)
  319. LocalPlayer.Size = UDim2.new(0, 181, 0, 41)
  320. LocalPlayer.Font = Enum.Font.Cartoon
  321. LocalPlayer.Text = "LocalPlayer/Misc"
  322. LocalPlayer.TextColor3 = Color3.new(1, 1, 1)
  323. LocalPlayer.TextSize = 20
  324.  
  325. OtherTps.Name = "Other Tp's"
  326. OtherTps.Parent = Main
  327. OtherTps.BackgroundColor3 = Color3.new(0, 0, 0)
  328. OtherTps.BackgroundTransparency = 1
  329. OtherTps.BorderSizePixel = 0
  330. OtherTps.Position = UDim2.new(6.47328416e-05, 0, 0.502917647, 0)
  331. OtherTps.Size = UDim2.new(0, 181, 0, 41)
  332.  
  333. OtherTps_2.Name = "OtherTp's"
  334. OtherTps_2.Parent = OtherTps
  335. OtherTps_2.BackgroundColor3 = Color3.new(0.639216, 0.109804, 0.686275)
  336. OtherTps_2.BorderSizePixel = 0
  337. OtherTps_2.Position = UDim2.new(-0.00231646956, 0, 0.0465452597, 0)
  338. OtherTps_2.Size = UDim2.new(0, 181, 0, 39)
  339. OtherTps_2.Font = Enum.Font.Cartoon
  340. OtherTps_2.Text = "Other Tp's"
  341. OtherTps_2.TextColor3 = Color3.new(1, 1, 1)
  342. OtherTps_2.TextSize = 20
  343.  
  344. AlphaTp.Name = "Alpha Tp"
  345. AlphaTp.Parent = Main
  346. AlphaTp.BackgroundColor3 = Color3.new(0.615686, 0.0980392, 0.615686)
  347. AlphaTp.BorderSizePixel = 0
  348. AlphaTp.Position = UDim2.new(-0.000714822672, 0, 0.625025153, 0)
  349. AlphaTp.Size = UDim2.new(0, 87, 0, 39)
  350. AlphaTp.Font = Enum.Font.Cartoon
  351. AlphaTp.Text = "Alpha Tp"
  352. AlphaTp.TextColor3 = Color3.new(1, 1, 1)
  353. AlphaTp.TextSize = 18
  354. AlphaTp.MouseButton1Down:connect(function()
  355. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(847.855225, 75.2000046, 2156.36279)
  356. end)
  357.  
  358. BravoTp.Name = "Bravo Tp"
  359. BravoTp.Parent = Main
  360. BravoTp.BackgroundColor3 = Color3.new(0.615686, 0.0980392, 0.615686)
  361. BravoTp.Position = UDim2.new(0.143456951, 0, 0.625025094, 0)
  362. BravoTp.Size = UDim2.new(0, 87, 0, 39)
  363. BravoTp.Font = Enum.Font.Cartoon
  364. BravoTp.Text = "Bravo Tp"
  365. BravoTp.TextColor3 = Color3.new(1, 1, 1)
  366. BravoTp.TextSize = 18
  367. BravoTp.MouseButton1Down:connect(function()
  368. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1486.97876, 100.599968, 122.98822)
  369. end)
  370.  
  371. CharlieTp.Name = "Charlie Tp"
  372. CharlieTp.Parent = Main
  373. CharlieTp.BackgroundColor3 = Color3.new(0.615686, 0.0980392, 0.615686)
  374. CharlieTp.BorderSizePixel = 0
  375. CharlieTp.Position = UDim2.new(0, 0, 0.75, 0)
  376. CharlieTp.Size = UDim2.new(0, 181, 0, 38)
  377. CharlieTp.Font = Enum.Font.Cartoon
  378. CharlieTp.Text = "Charlie Tp"
  379. CharlieTp.TextColor3 = Color3.new(1, 1, 1)
  380. CharlieTp.TextSize = 18
  381. CharlieTp.MouseButton1Down:connect(function()
  382. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2825.88037, 146.199982, 548.950562)
  383. end)
  384.  
  385. ExitButton.Name = "Exit Button"
  386. ExitButton.Parent = Main
  387. ExitButton.BackgroundColor3 = Color3.new(1, 1, 1)
  388. ExitButton.BackgroundTransparency = 1
  389. ExitButton.BorderSizePixel = 0
  390. ExitButton.Position = UDim2.new(0.929056704, 0, -0.0023915444, 0)
  391. ExitButton.Size = UDim2.new(0, 46, 0, 38)
  392. ExitButton.Font = Enum.Font.Cartoon
  393. ExitButton.Text = "X"
  394. ExitButton.TextColor3 = Color3.new(1, 1, 1)
  395. ExitButton.TextSize = 40
  396. ExitButton.MouseButton1Down:connect(function()
  397. OpenFrame.Visible = true
  398. Main.Visible = false
  399. end)
  400.  
  401.  
  402. OpenFrame.Name = "Open Frame"
  403. OpenFrame.Parent = ScreenGui
  404. OpenFrame.BackgroundColor3 = Color3.new(0.0313726, 0.0784314, 0.756863)
  405. OpenFrame.Position = UDim2.new(0, 0, 0.555776894, 0)
  406. OpenFrame.Size = UDim2.new(0, 100, 0, 34)
  407.  
  408. Open.Name = "Open"
  409. Open.Parent = OpenFrame
  410. Open.BackgroundColor3 = Color3.new(0.0313726, 0.0784314, 0.756863)
  411. Open.BorderSizePixel = 0
  412. Open.Position = UDim2.new(0, 0, 0.205882356, 0)
  413. Open.Size = UDim2.new(0, 93, 0, 20)
  414. Open.Font = Enum.Font.Cartoon
  415. Open.Text = "Open"
  416. Open.TextColor3 = Color3.new(1, 1, 1)
  417. Open.TextSize = 30
  418. Open.MouseButton1Down:connect(function()
  419. Main.Visible = true
  420. OpenFrame.Visible = false
  421. end)
  422. --Prints
  423. print(".")
  424. print(".")
  425. print(".")
  426. print("-----------------------------------------------")
  427. print("GUI made by Toxic :DD")
  428. print("Press e to fly")
  429. print("Press N to toggle on/off Return")
  430. print("Still a WIP GUI")
  431. print("Have Fun!!")
  432. print("-----------------------------------------------")
  433. print(".")
  434. print(".")
  435. print(".")
  436. --Return Script
  437. local stationaryrespawn = false
  438. local needsrespawning = false
  439. local haspos = false
  440. local pos = CFrame.new()
  441.  
  442. local Respawning = Instance.new("ScreenGui")
  443. local RespawningButton = Instance.new("TextButton")
  444.  
  445. Respawning.Name = "Respawning"
  446. Respawning.Parent = game.CoreGui
  447.  
  448.  
  449.  
  450. RespawningButton.Name = "RespawningButton"
  451. RespawningButton.Parent = Respawning
  452. RespawningButton.BackgroundColor3 = Color3.new(255, 222, 0)
  453. RespawningButton.BackgroundTransparency = 0.30000001192093
  454. RespawningButton.BorderSizePixel = 0
  455. RespawningButton.Position = UDim2.new(0.0391057241, 0, 0.826617789, 0)
  456. RespawningButton.Size = UDim2.new(0, 83, 0, 34)
  457. RespawningButton.Font = Enum.Font.SourceSans
  458. RespawningButton.Text = "Returning OFF"
  459. RespawningButton.TextColor3 = Color3.new(1, 1, 1)
  460. RespawningButton.TextSize = 20
  461. RespawningButton.TextScaled = true
  462. RespawningButton.Draggable = true
  463.  
  464.  
  465.  
  466.  
  467. function StatRespawn(inputObject, gameProcessedEvent)
  468. if inputObject.KeyCode == Enum.KeyCode.N and gameProcessedEvent == false then
  469. stationaryrespawn = not stationaryrespawn
  470. end
  471. end
  472.  
  473.  
  474.  
  475.  
  476.  
  477.  
  478. game:GetService("UserInputService").InputBegan:connect(StatRespawn)
  479.  
  480.  
  481.  
  482. game:GetService('RunService').Stepped:connect(function()
  483.  
  484.  
  485. if stationaryrespawn == true and game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
  486. if haspos == false then
  487. pos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  488. haspos = true
  489. end
  490.  
  491. needsrespawning = true
  492. end
  493.  
  494.  
  495. if needsrespawning == true then
  496. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  497. end
  498.  
  499.  
  500. if stationaryrespawn == true then
  501. RespawningButton.Text = "Returning ON"
  502. else
  503. RespawningButton.Text = "Returning OFF"
  504. end
  505.  
  506.  
  507. end)
  508.  
  509. game.Players.LocalPlayer.CharacterAdded:connect(function()
  510. wait(0.6)
  511. needsrespawning = false
  512. haspos = false
  513. end)
  514. --Press F9
  515. --Credits to Aidez for the Return script!!
  516. --GUI Made By Toxic :DD
Add Comment
Please, Sign In to add comment