AugusTH

Arceus X Fly Gui (Raw)

Nov 4th, 2023
700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.31 KB | None | 0 0
  1. local Script_Title = `Arceus X Fly Gui<font color="rgb(128, 0, 255)"></font>`
  2.  
  3. -- Instances:
  4. local Arceus = Instance.new("ScreenGui")
  5. local Main = Instance.new("Frame")
  6. local UICorner = Instance.new("UICorner")
  7. local Intro = Instance.new("Frame")
  8. local UICorner_2 = Instance.new("UICorner")
  9. local Logo = Instance.new("ImageButton")
  10. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  11. local Title = Instance.new("TextLabel")
  12. local Menu = Instance.new("ScrollingFrame")
  13. local UIListLayout = Instance.new("UIListLayout")
  14. local Toggle = Instance.new("ImageButton")
  15. local UICorner_3 = Instance.new("UICorner")
  16. local Enabled = Instance.new("Frame")
  17. local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint")
  18. local UICorner_4 = Instance.new("UICorner")
  19. local Check = Instance.new("Frame")
  20. local UIAspectRatioConstraint_3 = Instance.new("UIAspectRatioConstraint")
  21. local UICorner_5 = Instance.new("UICorner")
  22. local Name = Instance.new("TextLabel")
  23. local UIGradient = Instance.new("UIGradient")
  24. local Button = Instance.new("ImageButton")
  25. local UICorner_6 = Instance.new("UICorner")
  26. local Name_2 = Instance.new("TextLabel")
  27. local UIGradient_2 = Instance.new("UIGradient")
  28. local tab = Instance.new("Frame")
  29. local Close = Instance.new("TextButton")
  30. local ComboElem = Instance.new("ImageButton")
  31. local UICorner_7 = Instance.new("UICorner")
  32. local Name_3 = Instance.new("TextLabel")
  33. local UIGradient_3 = Instance.new("UIGradient")
  34. local Img = Instance.new("TextLabel")
  35. local UIAspectRatioConstraint_4 = Instance.new("UIAspectRatioConstraint")
  36. local ComboBox = Instance.new("ImageButton")
  37. local UICorner_8 = Instance.new("UICorner")
  38. local Name_4 = Instance.new("TextLabel")
  39. local UIGradient_4 = Instance.new("UIGradient")
  40. local Img_2 = Instance.new("TextLabel")
  41. local UIAspectRatioConstraint_5 = Instance.new("UIAspectRatioConstraint")
  42.  
  43. --Properties:
  44.  
  45. Arceus.Name = "Arceus"
  46. Arceus.Enabled = true
  47. Arceus.ResetOnSpawn = true
  48. Arceus.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  49. Arceus.DisplayOrder = 999999999
  50.  
  51. Main.Name = "Main"
  52. Main.Parent = Arceus
  53. Main.Active = true
  54. Main.Draggable = true
  55. Main.AnchorPoint = Vector2.new(0.5, 0.5)
  56. Main.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  57. Main.BorderSizePixel = 0
  58. Main.Position = UDim2.new(0.5, 0, -0.2, 0) --UDim2.new(0.5, 0, 0.5, 0)
  59. Main.Size = UDim2.new(0.22, 0, 0.3, 0)
  60.  
  61. UICorner.CornerRadius = UDim.new(0.1, 0)
  62. UICorner.Parent = Main
  63.  
  64. Intro.Name = "Intro"
  65. Intro.Parent = Main
  66. Intro.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  67. Intro.ClipsDescendants = true
  68. Intro.Size = UDim2.new(1, 0, 1, 0)
  69. Intro.ZIndex = 2
  70.  
  71. UICorner_2.CornerRadius = UDim.new(0.1, 0)
  72. UICorner_2.Parent = Intro
  73.  
  74. Logo.Parent = Intro
  75. Logo.AnchorPoint = Vector2.new(0.5, 0.5)
  76. Logo.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  77. Logo.BackgroundTransparency = 1
  78. Logo.BorderSizePixel = 0
  79. Logo.Position = UDim2.new(0.5, 0, 0.5, 0)
  80. Logo.Size = UDim2.new(0.75, 0, 0.75, 0)
  81. Logo.ZIndex = 2
  82. Logo.Image = "http://www.roblox.com/asset/?id=9178187770"
  83. Logo.ScaleType = Enum.ScaleType.Fit
  84. Logo.Active = false
  85.  
  86. UIAspectRatioConstraint.Parent = Logo
  87.  
  88. Title.Name = "Title"
  89. Title.Parent = Main
  90. Title.AnchorPoint = Vector2.new(1, 0)
  91. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  92. Title.BackgroundTransparency = 1
  93. Title.BorderSizePixel = 0
  94. Title.Position = UDim2.new(0.975, 0, 0.075, 0)
  95. Title.Size = UDim2.new(0.85, 0, 0.155, 0)
  96. Title.Font = Enum.Font.TitilliumWeb
  97. Title.FontFace = Font.new("rbxasset://fonts/families/TitilliumWeb.json", Enum.FontWeight.Bold)
  98. Title.RichText = true
  99. Title.Text = Script_Title
  100. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  101. Title.TextScaled = true
  102. Title.TextSize = 14
  103. Title.TextWrapped = true
  104. Title.TextXAlignment = Enum.TextXAlignment.Left
  105. Title.TextYAlignment = Enum.TextYAlignment.Center
  106.  
  107. Menu.Name = "Menu"
  108. Menu.Parent = Main
  109. Menu.Active = true
  110. Menu.AnchorPoint = Vector2.new(0.5, 1)
  111. Menu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  112. Menu.BackgroundTransparency = 1
  113. Menu.AutomaticCanvasSize = Enum.AutomaticSize.Y
  114. Menu.BorderSizePixel = 0
  115. Menu.Position = UDim2.new(0.5, 0, 1.17, 0)
  116. Menu.Size = UDim2.new(0.65, 0, 0.85, 0)
  117. Menu.CanvasSize = UDim2.new(0, 0, 0, 0)
  118. Menu.ScrollBarImageColor3 = Color3.fromRGB(255, 255, 255)
  119. Menu.ScrollBarThickness = Menu.AbsoluteSize.X/25
  120.  
  121. UIListLayout.Parent = Menu
  122. --UIListLayout.Padding = UDim.new(0.025, 0)
  123. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  124.  
  125. Toggle.Name = "Toggle"
  126. Toggle.Visible = false
  127. --Toggle.Parent = Arceus
  128. Toggle.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  129. Toggle.Size = UDim2.new(0.95, 0, 0, 50)
  130.  
  131. UICorner_3.CornerRadius = UDim.new(0.25, 0)
  132. UICorner_3.Parent = Toggle
  133.  
  134. Enabled.Name = "Enabled"
  135. Enabled.Parent = Toggle
  136. Enabled.AnchorPoint = Vector2.new(1, 0.5)
  137. Enabled.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  138. Enabled.Position = UDim2.new(0.975, 0, 0.5, 0)
  139. Enabled.Size = UDim2.new(0.75, 0, 0.75, 0)
  140.  
  141. UIAspectRatioConstraint_2.Parent = Enabled
  142.  
  143. UICorner_4.CornerRadius = UDim.new(0.3, 0)
  144. UICorner_4.Parent = Enabled
  145.  
  146. Check.Name = "Check"
  147. Check.Parent = Enabled
  148. Check.AnchorPoint = Vector2.new(0.5, 0.5)
  149. Check.BackgroundColor3 = Color3.fromRGB(128, 0, 255)
  150. Check.Position = UDim2.new(0.5, 0, 0.5, 0)
  151. Check.Size = UDim2.new(0.65, 0, 0.65, 0)
  152.  
  153. UIAspectRatioConstraint_3.Parent = Check
  154.  
  155. UICorner_5.CornerRadius = UDim.new(0.3, 0)
  156. UICorner_5.Parent = Check
  157.  
  158. Name.Name = "Name"
  159. Name.Parent = Toggle
  160. Name.AnchorPoint = Vector2.new(0, 0.5)
  161. Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  162. Name.BackgroundTransparency = 1
  163. Name.BorderSizePixel = 0
  164. Name.Position = UDim2.new(0.05, 0, 0.5, 0)
  165. Name.Size = UDim2.new(0.75, 0, 0.8, 0)
  166. Name.Font = Enum.Font.TitilliumWeb
  167. Name.Text = "Script"
  168. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  169. Name.TextScaled = true
  170. Name.TextSize = 14
  171. Name.TextWrapped = true
  172. Name.TextXAlignment = Enum.TextXAlignment.Left
  173. Name.TextYAlignment = Enum.TextYAlignment.Bottom
  174.  
  175. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  176. UIGradient.Parent = Toggle
  177.  
  178. Button.Name = "Button"
  179. --Button.Parent = Arceus
  180. Button.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  181. Button.Size = UDim2.new(0.95, 0, 0, 50)
  182.  
  183. UICorner_6.CornerRadius = UDim.new(0.25, 0)
  184. UICorner_6.Parent = Button
  185.  
  186. Name_2.Name = "Name"
  187. Name_2.Parent = Button
  188. Name_2.AnchorPoint = Vector2.new(0, 0.5)
  189. Name_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  190. Name_2.BackgroundTransparency = 1
  191. Name_2.BorderSizePixel = 0
  192. Name_2.Position = UDim2.new(0.05, 0, 0.5, 0)
  193. Name_2.Size = UDim2.new(0.95, 0, 0.82, 0)
  194. Name_2.Font = Enum.Font.TitilliumWeb
  195. Name_2.Text = "Enabled"
  196. Name_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  197. Name_2.TextScaled = true
  198. Name_2.TextSize = 14
  199. Name_2.TextWrapped = true
  200. Name_2.TextXAlignment = Enum.TextXAlignment.Left
  201. Name_2.TextYAlignment = Enum.TextYAlignment.Bottom
  202.  
  203. UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  204. UIGradient_2.Parent = Button
  205.  
  206. tab.Name = "Tab"
  207. tab.Visible = false
  208. --tab.Parent = Arceus
  209. tab.BackgroundTransparency = 1
  210. tab.Size = UDim2.new(0.95, 0, 0.025, 0)
  211.  
  212. Close.Name = "Close"
  213. Close.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  214. Close.BackgroundTransparency = 1
  215. Close.BorderSizePixel = 0
  216. Close.Position = UDim2.new(0.8, 0, 0.1, 0)
  217. Close.Size = UDim2.new(0.15, 0, 0.125, 0)
  218. Close.Font = Enum.Font.FredokaOne
  219. Close.Text = "X"
  220. Close.TextColor3 = Color3.fromRGB(255, 0, 0)
  221. Close.TextScaled = true
  222. Close.TextSize = 14
  223. Close.TextWrapped = true
  224. Close.TextXAlignment = Enum.TextXAlignment.Right
  225. Close.Parent = Main
  226.  
  227. ComboElem.Name = "ComboElem"
  228. ComboElem.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  229. ComboElem.Size = UDim2.new(0.95, 0, 0, 50)
  230.  
  231. UICorner_7.CornerRadius = UDim.new(0.25, 0)
  232. UICorner_7.Parent = ComboElem
  233.  
  234. Name_3.Name = "Name"
  235. Name_3.Parent = ComboElem
  236. Name_3.AnchorPoint = Vector2.new(0, 0.5)
  237. Name_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  238. Name_3.BackgroundTransparency = 1
  239. Name_3.BorderSizePixel = 0
  240. Name_3.Position = UDim2.new(0.05, 0, 0.5, 0)
  241. Name_3.Size = UDim2.new(0.75, 0, 0.8, 0)
  242. Name_3.Font = Enum.Font.TitilliumWeb
  243. Name_3.Text = "Enabled"
  244. Name_3.TextColor3 = Color3.fromRGB(128, 0, 255)
  245. Name_3.TextScaled = true
  246. Name_3.TextSize = 14
  247. Name_3.TextWrapped = true
  248. Name_3.TextXAlignment = Enum.TextXAlignment.Left
  249. Name_3.TextYAlignment = Enum.TextYAlignment.Bottom
  250.  
  251. UIGradient_3.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  252. UIGradient_3.Rotation = 180
  253. UIGradient_3.Parent = ComboElem
  254.  
  255. Img.Name = "Img"
  256. Img.Parent = ComboElem
  257. Img.AnchorPoint = Vector2.new(1, 0.5)
  258. Img.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  259. Img.BackgroundTransparency = 1
  260. Img.BorderSizePixel = 0
  261. Img.Position = UDim2.new(0.975, 0, 0.5, 0)
  262. Img.Rotation = 90
  263. Img.Size = UDim2.new(0.75, 0, 0.75, 0)
  264. Img.Font = Enum.Font.FredokaOne
  265. Img.Text = "^"
  266. Img.TextColor3 = Color3.fromRGB(255, 255, 255)
  267. Img.TextScaled = true
  268. Img.TextSize = 14
  269. Img.TextWrapped = true
  270.  
  271. UIAspectRatioConstraint_4.Parent = Img
  272.  
  273. ComboBox.Name = "ComboBox"
  274. ComboBox.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  275. ComboBox.Size = UDim2.new(0.95, 0, 0, 50)
  276.  
  277. UICorner_8.CornerRadius = UDim.new(0.25, 0)
  278. UICorner_8.Parent = ComboBox
  279.  
  280. Name_4.Name = "Name"
  281. Name_4.Parent = ComboBox
  282. Name_4.AnchorPoint = Vector2.new(0, 0.5)
  283. Name_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  284. Name_4.BackgroundTransparency = 1.000
  285. Name_4.BorderSizePixel = 0
  286. Name_4.Position = UDim2.new(0.05, 0, 0.5, 0)
  287. Name_4.Size = UDim2.new(0.75, 0, 0.8, 0)
  288. Name_4.Font = Enum.Font.TitilliumWeb
  289. Name_4.Text = "Enabled"
  290. Name_4.TextColor3 = Color3.fromRGB(255, 255, 255)
  291. Name_4.TextScaled = true
  292. Name_4.TextSize = 14
  293. Name_4.TextWrapped = true
  294. Name_4.TextXAlignment = Enum.TextXAlignment.Left
  295. Name_4.TextYAlignment = Enum.TextYAlignment.Bottom
  296.  
  297. UIGradient_4.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(180, 180, 180))}
  298. UIGradient_4.Parent = ComboBox
  299.  
  300. Img_2.Name = "Img"
  301. Img_2.Parent = ComboBox
  302. Img_2.AnchorPoint = Vector2.new(1, 0.5)
  303. Img_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  304. Img_2.BackgroundTransparency = 1
  305. Img_2.BorderSizePixel = 0
  306. Img_2.Rotation = 180
  307. Img_2.Position = UDim2.new(0.975, 0, 0.5, 0)
  308. Img_2.Size = UDim2.new(0.75, 0, 0.75, 0)
  309. Img_2.Font = Enum.Font.FredokaOne
  310. Img_2.Text = "^"
  311. Img_2.TextColor3 = Color3.fromRGB(128, 0, 255)
  312. Img_2.TextScaled = true
  313. Img_2.TextSize = 14
  314. Img_2.TextWrapped = true
  315.  
  316. UIAspectRatioConstraint_5.Parent = Img_2
  317.  
  318. -- SCRIPT
  319.  
  320. local TweenService = game:GetService("TweenService")
  321. Close.MouseButton1Click:Connect(function()
  322. Logo.Active = true
  323. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0}):Play()
  324.  
  325. task.wait(0.3)
  326. Logo:TweenSizeAndPosition(
  327. UDim2.fromScale(0.75, 0.75),
  328. UDim2.fromScale(0.5, 0.5),
  329. Enum.EasingDirection.Out,
  330. Enum.EasingStyle.Quad,
  331. 0.25, true, nil
  332. )
  333.  
  334. task.wait(0.3)
  335. Main:TweenSize(
  336. UDim2.fromScale(0.1, 0.175),
  337. Enum.EasingDirection.Out,
  338. Enum.EasingStyle.Quad,
  339. 0.25, true, nil
  340. )
  341.  
  342. task.wait(0.3)
  343. for _, obj in pairs(Main:GetChildren()) do
  344. if obj:IsA("GuiObject") and obj ~= Intro then
  345. obj.Visible = false
  346. end
  347. end
  348.  
  349. TweenService:Create(Logo, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageTransparency = 0.8}):Play()
  350. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 1}):Play()
  351. TweenService:Create(Main, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0.8}):Play()
  352. end)
  353.  
  354. Logo.MouseButton1Click:Connect(function()
  355. Logo.Active = false
  356. TweenService:Create(Logo, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {ImageTransparency = 0}):Play()
  357. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0}):Play()
  358. TweenService:Create(Main, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 0}):Play()
  359.  
  360. task.wait(0.3)
  361. Main:TweenSize(
  362. UDim2.fromScale(0.22, 0.3),
  363. Enum.EasingDirection.Out,
  364. Enum.EasingStyle.Quad,
  365. 0.25, true, nil
  366. )
  367.  
  368. task.wait(0.3)
  369. Logo:TweenSizeAndPosition(
  370. UDim2.fromScale(0.175, 0.175),
  371. UDim2.fromScale(0.075, 0.15),
  372. Enum.EasingDirection.Out,
  373. Enum.EasingStyle.Quad,
  374. 0.25, true, nil
  375. )
  376.  
  377. for _, obj in pairs(Main:GetChildren()) do
  378. if obj:IsA("GuiObject") and obj ~= Intro then
  379. obj.Visible = true
  380. end
  381. end
  382.  
  383. task.wait(0.3)
  384. TweenService:Create(Intro, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 1}):Play()
  385. end)
  386.  
  387. local function uiparent()
  388. local success, parent = pcall(function()
  389. return gethui()
  390. end)
  391.  
  392. if not success then
  393. return game:GetService("CoreGui")
  394. end
  395.  
  396. return parent
  397. end
  398.  
  399. local success, err = pcall(function()
  400. Arceus.Parent = uiparent()
  401. end)
  402.  
  403. if not success then
  404. Arceus.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  405. end
  406.  
  407. local element_height = 50*Menu.AbsoluteSize.Y/210
  408. local elements = 0
  409.  
  410. local function addSpace(parent)
  411. local space = tab:Clone()
  412. space.Parent = parent
  413. space.LayoutOrder = elements
  414. space.Visible = true
  415.  
  416. elements += 1
  417. end
  418.  
  419. local function addToggle(name, funct, enabled, ...)
  420. local newTog = Toggle:Clone()
  421. local args = {...}
  422.  
  423. newTog.MouseButton1Click:Connect(function()
  424. enabled = not enabled
  425. newTog:WaitForChild("Enabled"):WaitForChild("Check").Visible = enabled
  426. funct(enabled, unpack(args))
  427. end)
  428.  
  429. newTog:WaitForChild("Enabled"):WaitForChild("Check").Visible = enabled
  430. newTog:WaitForChild("Name").Text = name
  431.  
  432. newTog.Size = UDim2.new(0.95, 0, 0, element_height) -- Y1 = 50 : Y2 = X
  433. newTog.Name = name
  434. newTog.Parent = Menu
  435. newTog.LayoutOrder = elements
  436. newTog.Visible = true
  437.  
  438. elements += 1
  439. addSpace(Menu)
  440.  
  441. return newTog
  442. end
  443.  
  444. local function addButton(name, funct, ...)
  445. local newBut = Button:Clone()
  446. local args = {...}
  447.  
  448. newBut.MouseButton1Click:Connect(function()
  449. funct(unpack(args))
  450. end)
  451.  
  452. newBut:WaitForChild("Name").Text = name
  453. newBut.Size = UDim2.new(0.95, 0, 0, element_height)
  454. newBut.Name = name
  455. newBut.Parent = Menu
  456. newBut.LayoutOrder = elements
  457. newBut.Visible = true
  458.  
  459. elements += 1
  460. addSpace(Menu)
  461.  
  462. return newBut
  463. end
  464.  
  465. local function addComboBox(text, options, funct, ...) -- ADD CUSTOM ELEMENT INSTEAD
  466. local newCombo = ComboBox:Clone()
  467. local enabled = false
  468. local elems = {}
  469. local args = {...}
  470.  
  471. local function setBoxState()
  472. newCombo:WaitForChild("Img").Rotation = enabled and 0 or 180
  473. for _, elem in ipairs(elems) do
  474. elem.Visible = enabled
  475. end
  476. end
  477.  
  478. newCombo.MouseButton1Click:Connect(function()
  479. enabled = not enabled
  480. setBoxState()
  481. end)
  482.  
  483. newCombo:WaitForChild("Name").Text = text .. ": " .. (#options > 0 and options[1] or "")
  484. newCombo.Size = UDim2.new(0.95, 0, 0, element_height)
  485. newCombo.Name = #options > 0 and options[1] or ""
  486. newCombo.Parent = Menu
  487. newCombo.LayoutOrder = elements
  488. newCombo.Parent = Menu
  489. newCombo.Visible = true
  490.  
  491. elements += 1
  492. addSpace(Menu)
  493.  
  494. for _, name in ipairs(options) do
  495. local newElem = ComboElem:Clone()
  496. table.insert(elems, newElem)
  497.  
  498. newElem.MouseButton1Click:Connect(function()
  499. newCombo:WaitForChild("Name").Text = text .. ": " .. name
  500. enabled = false
  501. setBoxState()
  502.  
  503. funct(name, unpack(args))
  504. end)
  505.  
  506. newElem:WaitForChild("Name").Text = name
  507. newElem.Size = UDim2.new(0.95, 0, 0, element_height)
  508. newElem.Name = name
  509. newElem.Parent = Menu
  510. newElem.LayoutOrder = elements
  511. newElem.Visible = false
  512.  
  513. elements += 1
  514. addSpace(Menu)
  515. end
  516.  
  517. return newCombo
  518. end
  519.  
  520. -- Actual Script
  521.  
  522. local speeds = 3
  523. local nowe = false
  524. local tpwalking = false
  525. local speaker = game:GetService("Players").LocalPlayer
  526. local heartbeat = game:GetService("RunService").Heartbeat
  527.  
  528. local function updatespeed(char, hum)
  529. if nowe == true then
  530. tpwalking = false
  531. heartbeat:Wait()
  532. task.wait(.1)
  533. heartbeat:Wait() -- Make sure old threads are terminated
  534.  
  535. for i = 1, speeds do
  536. spawn(function()
  537. tpwalking = true
  538.  
  539. while tpwalking and heartbeat:Wait() and char and hum and hum.Parent do
  540. if hum.MoveDirection.Magnitude > 0 then
  541. char:TranslateBy(hum.MoveDirection)
  542. end
  543. end
  544. end)
  545. end
  546. end
  547. end
  548.  
  549. speaker.CharacterAdded:Connect(function(char)
  550. local char = speaker.Character
  551. if char then
  552. task.wait(0.7)
  553. char.Humanoid.PlatformStand = false
  554. char.Animate.Disabled = false
  555. end
  556. end)
  557.  
  558. local toggleBtn
  559. toggleBtn = addToggle("Fly Speed: " .. speeds, function(enabled)
  560. local char = speaker.Character
  561. if not char or not char.Humanoid then
  562. return
  563. end
  564.  
  565. local hum = char.Humanoid
  566. if nowe == true then
  567. nowe = false
  568.  
  569. hum:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  570. hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  571. hum:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  572. hum:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  573. hum:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  574. hum:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  575. hum:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  576. hum:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  577. hum:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  578. hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  579. hum:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  580. hum:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  581. hum:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  582. hum:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  583. hum:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  584. hum:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  585. else
  586. nowe = true
  587. updatespeed(char, hum)
  588.  
  589. char.Animate.Disabled = true
  590. for i,v in next, hum:GetPlayingAnimationTracks() do
  591. v:AdjustSpeed(0)
  592. end
  593.  
  594. hum:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  595. hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  596. hum:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  597. hum:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  598. hum:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  599. hum:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  600. hum:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  601. hum:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  602. hum:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  603. hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  604. hum:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  605. hum:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  606. hum:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  607. hum:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  608. hum:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  609. hum:ChangeState(Enum.HumanoidStateType.Swimming)
  610. end
  611.  
  612. local UpperTorso = speaker.Character.LowerTorso or speaker.Character.Torso
  613. local flying = true
  614. local deb = true
  615. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  616. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  617. local maxspeed = 3
  618. local speed = 0
  619.  
  620. local bg = Instance.new("BodyGyro", UpperTorso)
  621. bg.P = 9e4
  622. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  623. bg.cframe = UpperTorso.CFrame
  624.  
  625. local bv = Instance.new("BodyVelocity", UpperTorso)
  626. bv.velocity = Vector3.new(0,0.1,0)
  627. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  628.  
  629. if nowe == true then
  630. hum.PlatformStand = true
  631. end
  632.  
  633. while nowe == true or hum.Health == 0 do
  634. task.wait()
  635.  
  636. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  637. speed = speed+.5+(speed/maxspeed)
  638. if speed > maxspeed then
  639. speed = maxspeed
  640. end
  641. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  642. speed = speed-1
  643. if speed < 0 then
  644. speed = 0
  645. end
  646. end
  647. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  648. 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
  649. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  650. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  651. 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
  652. else
  653. bv.velocity = Vector3.new(0,0,0)
  654. end
  655.  
  656. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*4*speed/maxspeed),0,0)
  657. end
  658.  
  659. ctrl = {f = 0, b = 0, l = 0, r = 0}
  660. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  661. speed = 0
  662. bg:Destroy()
  663. bv:Destroy()
  664.  
  665. hum.PlatformStand = false
  666. char.Animate.Disabled = false
  667. tpwalking = false
  668. end, false)
  669.  
  670. local incraseBtn
  671. incraseBtn = addButton("Speed +", function()
  672. local char = speaker.Character
  673. if char and char.Humanoid then
  674. local hum = char.Humanoid
  675.  
  676. speeds = speeds + 1
  677. updatespeed(char, hum)
  678.  
  679. toggleBtn:WaitForChild("Name").Text = "Fly Speed: " .. speeds
  680. end
  681. end)
  682.  
  683. local decraseBtn
  684. decraseBtn = addButton("Speed -", function()
  685. local char = speaker.Character
  686. if char and char.Humanoid then
  687. local hum = char.Humanoid
  688.  
  689. if speeds > 1 then
  690. speeds = speeds - 1
  691. updatespeed(char, hum)
  692. end
  693.  
  694. toggleBtn:WaitForChild("Name").Text = "Fly Speed: " .. speeds
  695. end
  696. end)
  697.  
  698. -- INIT
  699.  
  700. Main:TweenPosition(
  701. UDim2.fromScale(0.5, 0.5),
  702. Enum.EasingDirection.In,
  703. Enum.EasingStyle.Quad,
  704. 1, true, nil
  705. )
  706.  
  707. task.wait(1.5)
  708. Logo:TweenSizeAndPosition(
  709. UDim2.fromScale(0.175, 0.175),
  710. UDim2.fromScale(0.075, 0.15),
  711. Enum.EasingDirection.In,
  712. Enum.EasingStyle.Quad,
  713. 1, true, nil
  714. )
  715.  
  716. task.wait(1.5)
  717. TweenService:Create(Intro, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {BackgroundTransparency = 1}):Play()
  718.  
  719. game.StarterGui:SetCore("SendNotification", {
  720. Title = "Arceus X Fly Gui";
  721. Text = "Remake By Augus X";
  722. Icon = "rbxassetid://12564267060";
  723. Duration = "10";
  724. })
  725.  
Advertisement
Add Comment
Please, Sign In to add comment