Ubicast

Simple

Dec 23rd, 2020 (edited)
16,145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.78 KB | None | 0 0
  1. -- This script is old, bad and cringe, If you're reading this, don't use it, it is not secured at all also kind of bad, April 14 2020
  2.  
  3. -- Simple
  4. -- by isaraw8912
  5.  
  6. -- INSTRUCTIONS !!!
  7.  
  8. -- Press F to Fly
  9. -- Press E to NoClip
  10. -- Click TP Hotkey : CTRL
  11. -- Press R to uninfinite jump
  12.  
  13. -- prints
  14.  
  15. print("Thank you for using Simple")
  16.  
  17. -- Notification - Loaded |
  18.  
  19. game:GetService("StarterGui"):SetCore("SendNotification",{
  20.             Title = "Simple";
  21.             Text = "Made by isaraw8912";
  22.                     })
  23.  
  24. -- Instances:
  25.  
  26. local Simple = Instance.new("ScreenGui")
  27. local main = Instance.new("Frame")
  28. local noclip = Instance.new("TextButton")
  29. local clicktp = Instance.new("TextButton")
  30. local tpto = Instance.new("TextButton")
  31. local infjump = Instance.new("TextButton")
  32. local btools = Instance.new("TextButton")
  33. local jumppower = Instance.new("TextButton")
  34. local jpframe = Instance.new("Frame")
  35. local jpinput = Instance.new("TextBox")
  36. local setjp = Instance.new("TextButton")
  37. local rejp = Instance.new("TextButton")
  38. local title = Instance.new("TextLabel")
  39. local walkspeed = Instance.new("TextButton")
  40. local wsframe = Instance.new("Frame")
  41. local wsinput = Instance.new("TextBox")
  42. local setws = Instance.new("TextButton")
  43. local rews = Instance.new("TextButton")
  44. local close = Instance.new("TextButton")
  45. local fly = Instance.new("TextButton")
  46. local open = Instance.new("TextButton")
  47. local jpclose = Instance.new("TextButton")
  48. local wsclose = Instance.new("TextButton")
  49. local tpframe = Instance.new("Frame")
  50. local tpinput = Instance.new("TextBox")
  51. local settp = Instance.new("TextButton")
  52. local tpclose = Instance.new("TextButton")
  53.  
  54. --Properties:
  55.  
  56. Simple.Name = "Simple"
  57. Simple.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  58.  
  59. main.Name = "main"
  60. main.Parent = Simple
  61. main.Active = true
  62. main.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  63. main.Position = UDim2.new(0.382422805, 0, 0.292828679, 0)
  64. main.Size = UDim2.new(0, 349, 0, 287)
  65. main.Draggable = true
  66.  
  67. noclip.Name = "noclip"
  68. noclip.Parent = main
  69. noclip.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  70. noclip.Position = UDim2.new(0.0658583343, 0, 0.198759019, 0)
  71. noclip.Size = UDim2.new(0, 119, 0, 40)
  72. noclip.Font = Enum.Font.SourceSans
  73. noclip.Text = "NoClip"
  74. noclip.TextColor3 = Color3.fromRGB(0, 0, 0)
  75. noclip.TextScaled = true
  76. noclip.TextSize = 14.000
  77. noclip.TextWrapped = true
  78. noclip.MouseButton1Click:Connect(function()
  79.     game:GetService('RunService').Stepped:connect(function()
  80. if noclip then
  81. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  82. end
  83. end)
  84. plr = game.Players.LocalPlayer
  85. mouse = plr:GetMouse()
  86. mouse.KeyDown:connect(function(key)
  87.  
  88. if key == "e" then
  89. noclip = not noclip
  90. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  91. end
  92. end)
  93.     noclip.Text = "Loaded!"
  94.     noclip.TextColor3 = Color3.fromRGB(0, 255, 50)
  95.     wait(2)
  96.     noclip.TextColor3 = Color3.fromRGB(0, 0, 0)
  97.     noclip.Text = "NoClip"
  98. end)
  99.  
  100. clicktp.Name = "clicktp"
  101. clicktp.Parent = main
  102. clicktp.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  103. clicktp.Position = UDim2.new(0.588318229, 0, 0.198759019, 0)
  104. clicktp.Size = UDim2.new(0, 119, 0, 40)
  105. clicktp.Font = Enum.Font.SourceSans
  106. clicktp.Text = "Click TP"
  107. clicktp.TextColor3 = Color3.fromRGB(0, 0, 0)
  108. clicktp.TextScaled = true
  109. clicktp.TextSize = 14.000
  110. clicktp.TextWrapped = true
  111. clicktp.MouseButton1Click:Connect(function()
  112.     noclip = false
  113. local UIS = game:GetService("UserInputService")
  114. local Player = game.Players.LocalPlayer
  115. local Mouse = Player:GetMouse()
  116.  
  117.  
  118. function GetCharacter()
  119.    return game.Players.LocalPlayer.Character
  120. end
  121.  
  122. function Teleport(pos)
  123.    local Char = GetCharacter()
  124.    if Char then
  125.        Char:MoveTo(pos)
  126.    end
  127. end
  128.  
  129.  
  130. UIS.InputBegan:Connect(function(input)
  131.    if input.UserInputType == Enum.UserInputType.MouseButton1 and UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
  132.        Teleport(Mouse.Hit.p)
  133.    end
  134. end)
  135.     clicktp.Text = "Loaded!"
  136.     clicktp.TextColor3 = Color3.fromRGB(0, 255, 50)
  137.     wait(2)
  138.     clicktp.TextColor3 = Color3.fromRGB(0, 0, 0)
  139.     clicktp.Text = "Click TP"
  140. end)
  141.  
  142. tpto.Name = "tpto"
  143. tpto.Parent = main
  144. tpto.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  145. tpto.Position = UDim2.new(0.588318229, 0, 0.411871731, 0)
  146. tpto.Size = UDim2.new(0, 119, 0, 41)
  147. tpto.Font = Enum.Font.SourceSans
  148. tpto.Text = "Teleport To"
  149. tpto.TextColor3 = Color3.fromRGB(0, 0, 0)
  150. tpto.TextScaled = true
  151. tpto.TextSize = 14.000
  152. tpto.TextWrapped = true
  153. tpto.MouseButton1Click:Connect(function()
  154.     tpframe.Visible = true
  155.     infjump.Visible = false
  156.     jumppower.Visible = false
  157.     walkspeed.Visible = false
  158.     btools.Visible = false
  159.     fly.Visible = false
  160. end)
  161.  
  162. tpclose.Name = "tpclose"
  163. tpclose.Parent = tpframe
  164. tpclose.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  165. tpclose.Position = UDim2.new(0.92929244, 0, 0, 0)
  166. tpclose.Size = UDim2.new(0, 24, 0, 24)
  167. tpclose.Font = Enum.Font.SourceSans
  168. tpclose.Text = "X"
  169. tpclose.TextColor3 = Color3.fromRGB(255, 255, 255)
  170. tpclose.TextScaled = true
  171. tpclose.TextSize = 14.000
  172. tpclose.TextWrapped = true
  173. tpclose.MouseButton1Click:Connect(function()
  174.     tpframe.Visible = false
  175.     infjump.Visible = true
  176.     jumppower.Visible = true
  177.     walkspeed.Visible = true
  178.     btools.Visible = true
  179.     fly.Visible = true
  180. end)
  181.  
  182. tpframe.Name = "tpframe"
  183. tpframe.Parent = tpto
  184. tpframe.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  185. tpframe.BorderSizePixel = 0
  186. tpframe.Position = UDim2.new(-1.72255921, 0, -1.77698445, 0)
  187. tpframe.Size = UDim2.new(0, 348, 0, 240)
  188. tpframe.Visible = false
  189.  
  190. tpinput.Name = "tpinput"
  191. tpinput.Parent = tpframe
  192. tpinput.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  193. tpinput.Position = UDim2.new(0.209770113, 0, 0.174999997, 0)
  194. tpinput.Size = UDim2.new(0, 200, 0, 50)
  195. tpinput.Font = Enum.Font.SourceSans
  196. tpinput.Text = "Full Player Username"
  197. tpinput.TextColor3 = Color3.fromRGB(255, 255, 255)
  198. tpinput.TextSize = 22.000
  199.  
  200. settp.Name = "settp"
  201. settp.Parent = tpframe
  202. settp.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  203. settp.Position = UDim2.new(0.304597706, 0, 0.470833331, 0)
  204. settp.Size = UDim2.new(0, 135, 0, 50)
  205. settp.Font = Enum.Font.SourceSans
  206. settp.Text = "Teleport"
  207. settp.TextColor3 = Color3.fromRGB(85, 0, 127)
  208. settp.TextSize = 14.000
  209. settp.MouseButton1Click:Connect(function()
  210.     local Victim = tpinput.Text
  211.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players[Victim].Character.HumanoidRootPart.CFrame
  212.     settp.Text = "Teleported!"
  213.     settp.TextColor3 = Color3.fromRGB(0, 255, 50)
  214.     wait(2)
  215.     settp.TextColor3 = Color3.fromRGB(255, 255, 255)
  216.     settp.Text = "Teleport"
  217. end)
  218.  
  219. infjump.Name = "infjump"
  220. infjump.Parent = main
  221. infjump.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  222. infjump.Position = UDim2.new(0.0658583343, 0, 0.411871731, 0)
  223. infjump.Size = UDim2.new(0, 119, 0, 41)
  224. infjump.Font = Enum.Font.SourceSans
  225. infjump.Text = "Infinite Jump"
  226. infjump.TextColor3 = Color3.fromRGB(0, 0, 0)
  227. infjump.TextScaled = true
  228. infjump.TextSize = 14.000
  229. infjump.TextWrapped = true
  230. infjump.MouseButton1Click:Connect(function()
  231.     loadstring(game:HttpGet("https://pastebin.com/raw/HQsQysa8", true))()
  232.     infjump.Text = "Loaded!"
  233.     infjump.TextColor3 = Color3.fromRGB(0, 255, 50)
  234.     wait(2)
  235.     infjump.TextColor3 = Color3.fromRGB(0, 0, 0)
  236.     infjump.Text = "Infinite Jump"
  237. end)
  238.  
  239. btools.Name = "btools"
  240. btools.Parent = main
  241. btools.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  242. btools.Position = UDim2.new(0.588318229, 0, 0.621999919, 0)
  243. btools.Size = UDim2.new(0, 119, 0, 38)
  244. btools.Font = Enum.Font.SourceSans
  245. btools.Text = "BTools"
  246. btools.TextColor3 = Color3.fromRGB(0, 0, 0)
  247. btools.TextScaled = true
  248. btools.TextSize = 14.000
  249. btools.TextWrapped = true
  250. btools.MouseButton1Click:Connect(function()
  251.     game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
  252. for index, child in pairs(game:GetService("Workspace"):GetChildren()) do
  253.    if child.ClassName == "Part" then
  254.        child.Locked = false
  255.    end
  256.    if child.ClassName == "MeshPart" then
  257.        child.Locked = false
  258.    end
  259.    if child.ClassName == "UnionOperation" then
  260.        child.Locked = false
  261.    end
  262.    if child.ClassName == "Model" then
  263.        for index, chil in pairs(child:GetChildren()) do
  264.            if chil.ClassName == "Part" then
  265.                chil.Locked = false
  266.            end
  267.            if chil.ClassName == "MeshPart" then
  268.                chil.Locked = false
  269.            end
  270.            if chil.ClassName == "UnionOperation" then
  271.                chil.Locked = false
  272.            end
  273.            if chil.ClassName == "Model" then
  274.                for index, childe in pairs(chil:GetChildren()) do
  275.                    if childe.ClassName == "Part" then
  276.                        childe.Locked = false
  277.                    end
  278.                    if childe.ClassName == "MeshPart" then
  279.                        childe.Locked = false
  280.                    end
  281.                    if childe.ClassName == "UnionOperation" then
  282.                        childe.Locked = false
  283.                    end
  284.                    if childe.ClassName == "Model" then
  285.                        for index, childeo in pairs(childe:GetChildren()) do
  286.                            if childeo.ClassName == "Part" then
  287.                                childeo.Locked = false
  288.                            end
  289.                            if childeo.ClassName == "MeshPart" then
  290.                                childeo.Locked = false
  291.                            end
  292.                            if childeo.ClassName == "UnionOperation" then
  293.                                childeo.Locked = false
  294.                            end
  295.                            if childeo.ClassName == "Model" then
  296.                            end
  297.                        end
  298.                    end
  299.                end
  300.            end
  301.        end
  302.    end
  303. end
  304. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  305. c.BinType = Enum.BinType.Hammer
  306. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  307. c.BinType = Enum.BinType.Clone
  308. c = Instance.new("HopperBin", game:GetService("Players").LocalPlayer.Backpack)
  309. c.BinType = Enum.BinType.Grab
  310.     btools.Text = "Loaded!"
  311.     btools.TextColor3 = Color3.fromRGB(0, 255, 50)
  312.     wait(2)
  313.     btools.TextColor3 = Color3.fromRGB(0, 0, 0)
  314.     btools.Text = "BTools"
  315. end)
  316.  
  317. jumppower.Name = "jumppower"
  318. jumppower.Parent = main
  319. jumppower.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  320. jumppower.Position = UDim2.new(0.0658583343, 0, 0.621999919, 0)
  321. jumppower.Size = UDim2.new(0, 119, 0, 42)
  322. jumppower.Font = Enum.Font.SourceSans
  323. jumppower.Text = "Jump Power"
  324. jumppower.TextColor3 = Color3.fromRGB(0, 0, 0)
  325. jumppower.TextScaled = true
  326. jumppower.TextSize = 14.000
  327. jumppower.TextWrapped = true
  328. jumppower.MouseButton1Click:Connect(function()
  329.     jpframe.Visible = true
  330.     walkspeed.Visible = false
  331.     fly.Visible = false
  332. end)
  333.  
  334. jpframe.Name = "jpframe"
  335. jpframe.Parent = jumppower
  336. jpframe.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  337. jpframe.BorderSizePixel = 0
  338. jpframe.Position = UDim2.new(-0.19314754, 0, -3.15096831, 0)
  339. jpframe.Size = UDim2.new(0, 348, 0, 240)
  340. jpframe.Visible = false
  341.  
  342. jpclose.Name = "jpclose"
  343. jpclose.Parent = jpframe
  344. jpclose.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  345. jpclose.Position = UDim2.new(0.92929244, 0, 0, 0)
  346. jpclose.Size = UDim2.new(0, 24, 0, 24)
  347. jpclose.Font = Enum.Font.SourceSans
  348. jpclose.Text = "X"
  349. jpclose.TextColor3 = Color3.fromRGB(255, 255, 255)
  350. jpclose.TextScaled = true
  351. jpclose.TextSize = 14.000
  352. jpclose.TextWrapped = true
  353. jpclose.MouseButton1Click:Connect(function()
  354.     walkspeed.Visible = true
  355.     fly.Visible = true
  356.     jpframe.Visible = false
  357. end)
  358.  
  359. jpinput.Name = "jpinput"
  360. jpinput.Parent = jpframe
  361. jpinput.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  362. jpinput.Position = UDim2.new(0.209770113, 0, 0.174999997, 0)
  363. jpinput.Size = UDim2.new(0, 200, 0, 50)
  364. jpinput.Font = Enum.Font.SourceSans
  365. jpinput.Text = "Power Value"
  366. jpinput.TextColor3 = Color3.fromRGB(255, 255, 255)
  367. jpinput.TextSize = 22.000
  368.  
  369. setjp.Name = "setjp"
  370. setjp.Parent = jpframe
  371. setjp.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  372. setjp.Position = UDim2.new(0.0632183924, 0, 0.470833331, 0)
  373. setjp.Size = UDim2.new(0, 135, 0, 50)
  374. setjp.Font = Enum.Font.SourceSans
  375. setjp.Text = "Set Jump Power"
  376. setjp.TextColor3 = Color3.fromRGB(85, 0, 127)
  377. setjp.TextSize = 14.000
  378. setjp.MouseButton1Click:Connect(function()
  379.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = jpinput.Text
  380. end)
  381.  
  382. rejp.Name = "rejp"
  383. rejp.Parent = jpframe
  384. rejp.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  385. rejp.Position = UDim2.new(0.537356317, 0, 0.470833331, 0)
  386. rejp.Size = UDim2.new(0, 136, 0, 50)
  387. rejp.Font = Enum.Font.SourceSans
  388. rejp.Text = "Reset Jump Power"
  389. rejp.TextColor3 = Color3.fromRGB(85, 0, 127)
  390. rejp.TextSize = 14.000
  391. rejp.MouseButton1Click:Connect(function()
  392.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  393. end)
  394.  
  395. title.Name = "title"
  396. title.Parent = main
  397. title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  398. title.BackgroundTransparency = 1.000
  399. title.Position = UDim2.new(0.211408243, 0, -0.00288046151, 0)
  400. title.Size = UDim2.new(0, 200, 0, 47)
  401. title.Font = Enum.Font.Highway
  402. title.Text = "Simple"
  403. title.TextColor3 = Color3.fromRGB(0, 255, 255)
  404. title.TextScaled = true
  405. title.TextSize = 14.000
  406. title.TextWrapped = true
  407.  
  408. walkspeed.Name = "walkspeed"
  409. walkspeed.Parent = main
  410. walkspeed.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  411. walkspeed.Position = UDim2.new(0.0658583343, 0, 0.817121804, 0)
  412. walkspeed.Size = UDim2.new(0, 119, 0, 42)
  413. walkspeed.Font = Enum.Font.SourceSans
  414. walkspeed.Text = "Walk Speed"
  415. walkspeed.TextColor3 = Color3.fromRGB(0, 0, 0)
  416. walkspeed.TextScaled = true
  417. walkspeed.TextSize = 14.000
  418. walkspeed.TextWrapped = true
  419. walkspeed.MouseButton1Click:Connect(function()
  420.     wsframe.Visible = true
  421.     fly.Visible = false
  422. end)
  423.  
  424. wsframe.Name = "wsframe"
  425. wsframe.Parent = walkspeed
  426. wsframe.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  427. wsframe.BorderSizePixel = 0
  428. wsframe.Position = UDim2.new(-0.201550901, 0, -4.48430157, 0)
  429. wsframe.Size = UDim2.new(0, 348, 0, 240)
  430. wsframe.Visible = false
  431.  
  432. wsclose.Name = "wsclose"
  433. wsclose.Parent = wsframe
  434. wsclose.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  435. wsclose.Position = UDim2.new(0.92929244, 0, 0, 0)
  436. wsclose.Size = UDim2.new(0, 24, 0, 24)
  437. wsclose.Font = Enum.Font.SourceSans
  438. wsclose.Text = "X"
  439. wsclose.TextColor3 = Color3.fromRGB(255, 255, 255)
  440. wsclose.TextScaled = true
  441. wsclose.TextSize = 14.000
  442. wsclose.TextWrapped = true
  443. wsclose.MouseButton1Click:Connect(function()
  444.     wsframe.Visible = false
  445.     fly.Visible = true
  446. end)
  447.  
  448. wsinput.Name = "wsinput"
  449. wsinput.Parent = wsframe
  450. wsinput.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  451. wsinput.Position = UDim2.new(0.209770113, 0, 0.174999997, 0)
  452. wsinput.Size = UDim2.new(0, 200, 0, 50)
  453. wsinput.Font = Enum.Font.SourceSans
  454. wsinput.Text = "Speed Value"
  455. wsinput.TextColor3 = Color3.fromRGB(255, 255, 255)
  456. wsinput.TextSize = 22.000
  457.  
  458. setws.Name = "setws"
  459. setws.Parent = wsframe
  460. setws.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  461. setws.Position = UDim2.new(0.0632183924, 0, 0.470833331, 0)
  462. setws.Size = UDim2.new(0, 135, 0, 50)
  463. setws.Font = Enum.Font.SourceSans
  464. setws.Text = "Set Walk Speed"
  465. setws.TextColor3 = Color3.fromRGB(85, 0, 127)
  466. setws.TextSize = 14.000
  467. setws.MouseButton1Click:Connect(function()
  468.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = wsinput.Text
  469. end)
  470.  
  471. rews.Name = "rews"
  472. rews.Parent = wsframe
  473. rews.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  474. rews.Position = UDim2.new(0.537356317, 0, 0.470833331, 0)
  475. rews.Size = UDim2.new(0, 136, 0, 50)
  476. rews.Font = Enum.Font.SourceSans
  477. rews.Text = "Reset Walk Speed"
  478. rews.TextColor3 = Color3.fromRGB(85, 0, 127)
  479. rews.TextSize = 14.000
  480. rews.MouseButton1Click:Connect(function()
  481.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  482. end)
  483.  
  484. close.Name = "close"
  485. close.Parent = main
  486. close.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  487. close.Position = UDim2.new(0.92929244, 0, 0, 0)
  488. close.Size = UDim2.new(0, 24, 0, 24)
  489. close.Font = Enum.Font.SourceSans
  490. close.Text = "X"
  491. close.TextColor3 = Color3.fromRGB(255, 255, 255)
  492. close.TextScaled = true
  493. close.TextSize = 14.000
  494. close.TextWrapped = true
  495. close.MouseButton1Click:Connect(function()
  496.     main.Visible = false
  497.     open.Visible = true
  498. end)
  499.  
  500. fly.Name = "fly"
  501. fly.Parent = main
  502. fly.BackgroundColor3 = Color3.fromRGB(170, 170, 255)
  503. fly.Position = UDim2.new(0.587348342, 0, 0.817121804, 0)
  504. fly.Size = UDim2.new(0, 119, 0, 42)
  505. fly.Font = Enum.Font.SourceSans
  506. fly.Text = "Fly"
  507. fly.TextColor3 = Color3.fromRGB(0, 0, 0)
  508. fly.TextScaled = true
  509. fly.TextSize = 14.000
  510. fly.TextWrapped = true
  511. fly.MouseButton1Click:Connect(function()
  512.     repeat wait()
  513.     until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  514. local mouse = game.Players.LocalPlayer:GetMouse()
  515. repeat wait() until mouse
  516. local plr = game.Players.LocalPlayer
  517. local torso = plr.Character.Head
  518. local flying = false
  519. local deb = true
  520. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  521. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  522. local maxspeed = 400
  523. local speed = 5000
  524.  
  525. function Fly()
  526. local bg = Instance.new("BodyGyro", torso)
  527. bg.P = 9e4
  528. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  529. bg.cframe = torso.CFrame
  530. local bv = Instance.new("BodyVelocity", torso)
  531. bv.velocity = Vector3.new(0,0.1,0)
  532. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  533. repeat wait()
  534. plr.Character.Humanoid.PlatformStand = true
  535. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  536. speed = speed+.5+(speed/maxspeed)
  537. if speed > maxspeed then
  538. speed = maxspeed
  539. end
  540. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  541. speed = speed-1
  542. if speed < 0 then
  543. speed = 0
  544. end
  545. end
  546. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  547. 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
  548. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  549. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  550. 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
  551. else
  552. bv.velocity = Vector3.new(0,0.1,0)
  553. end
  554. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  555. until not flying
  556. ctrl = {f = 0, b = 0, l = 0, r = 0}
  557. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  558. speed = 0
  559. bg:Destroy()
  560. bv:Destroy()
  561. plr.Character.Humanoid.PlatformStand = false
  562. end
  563. mouse.KeyDown:connect(function(key)
  564. if key:lower() == "f" then
  565. if flying then flying = false
  566. else
  567. flying = true
  568. Fly()
  569. end
  570. elseif key:lower() == "w" then
  571. ctrl.f = 1
  572. elseif key:lower() == "s" then
  573. ctrl.b = -1
  574. elseif key:lower() == "a" then
  575. ctrl.l = -1
  576. elseif key:lower() == "d" then
  577. ctrl.r = 1
  578. end
  579. end)
  580. mouse.KeyUp:connect(function(key)
  581. if key:lower() == "w" then
  582. ctrl.f = 0
  583. elseif key:lower() == "s" then
  584. ctrl.b = 0
  585. elseif key:lower() == "a" then
  586. ctrl.l = 0
  587. elseif key:lower() == "d" then
  588. ctrl.r = 0
  589. end
  590. end)
  591. Fly()
  592.     fly.Text = "Loaded!"
  593.     fly.TextColor3 = Color3.fromRGB(0, 255, 50)
  594.     wait(2)
  595.     fly.TextColor3 = Color3.fromRGB(0, 0, 0)
  596.     fly.Text = "Fly"
  597. end)
  598.  
  599. open.Name = "open"
  600. open.Parent = Simple
  601. open.BackgroundColor3 = Color3.fromRGB(0, 0, 255)
  602. open.Position = UDim2.new(0, 0, 0.609974444, 0)
  603. open.Size = UDim2.new(0, 70, 0, 18)
  604. open.Visible = false
  605. open.Font = Enum.Font.SourceSans
  606. open.Text = "Open"
  607. open.TextColor3 = Color3.fromRGB(0, 255, 255)
  608. open.TextSize = 14.000
  609. open.MouseButton1Click:Connect(function()
  610.     main.Visible = true
  611.     open.Visible = false
  612. end)
Add Comment
Please, Sign In to add comment