PlayKittensInc

Fly script, 90% undetected

Jan 3rd, 2025
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.32 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local main = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local up = Instance.new("TextButton")
  9. local down = Instance.new("TextButton")
  10. local onof = Instance.new("TextButton")
  11. local TextLabel = Instance.new("TextLabel")
  12. local plus = Instance.new("TextButton")
  13. local speed = Instance.new("TextLabel")
  14. local mine = Instance.new("TextButton")
  15.  
  16. --Properties:
  17.  
  18. main.Name = "main"
  19. main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20. main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  21.  
  22. Frame.Parent = main
  23. Frame.BackgroundColor3 = Color3.fromRGB(163, 255, 137)
  24. Frame.BorderColor3 = Color3.fromRGB(103, 221, 213)
  25. Frame.Position = UDim2.new(0.100320168, 0, 0.379746825, 0)
  26. Frame.Size = UDim2.new(0, 190, 0, 57)
  27.  
  28. up.Name = "up"
  29. up.Parent = Frame
  30. up.BackgroundColor3 = Color3.fromRGB(79, 255, 152)
  31. up.Size = UDim2.new(0, 44, 0, 28)
  32. up.Font = Enum.Font.SourceSans
  33. up.Text = "UP"
  34. up.TextColor3 = Color3.fromRGB(0, 0, 0)
  35. up.TextSize = 14.000
  36.  
  37. down.Name = "down"
  38. down.Parent = Frame
  39. down.BackgroundColor3 = Color3.fromRGB(215, 255, 121)
  40. down.Position = UDim2.new(0, 0, 0.491228074, 0)
  41. down.Size = UDim2.new(0, 44, 0, 28)
  42. down.Font = Enum.Font.SourceSans
  43. down.Text = "DOWN"
  44. down.TextColor3 = Color3.fromRGB(0, 0, 0)
  45. down.TextSize = 14.000
  46.  
  47. onof.Name = "onof"
  48. onof.Parent = Frame
  49. onof.BackgroundColor3 = Color3.fromRGB(255, 249, 74)
  50. onof.Position = UDim2.new(0.702823281, 0, 0.491228074, 0)
  51. onof.Size = UDim2.new(0, 56, 0, 28)
  52. onof.Font = Enum.Font.SourceSans
  53. onof.Text = "fly"
  54. onof.TextColor3 = Color3.fromRGB(0, 0, 0)
  55. onof.TextSize = 14.000
  56.  
  57. TextLabel.Parent = Frame
  58. TextLabel.BackgroundColor3 = Color3.fromRGB(242, 60, 255)
  59. TextLabel.Position = UDim2.new(0.469327301, 0, 0, 0)
  60. TextLabel.Size = UDim2.new(0, 100, 0, 28)
  61. TextLabel.Font = Enum.Font.SourceSans
  62. TextLabel.Text = "gui by me_ozoneYT"
  63. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  64. TextLabel.TextScaled = true
  65. TextLabel.TextSize = 14.000
  66. TextLabel.TextWrapped = true
  67.  
  68. plus.Name = "plus"
  69. plus.Parent = Frame
  70. plus.BackgroundColor3 = Color3.fromRGB(133, 145, 255)
  71. plus.Position = UDim2.new(0.231578946, 0, 0, 0)
  72. plus.Size = UDim2.new(0, 45, 0, 28)
  73. plus.Font = Enum.Font.SourceSans
  74. plus.Text = "+"
  75. plus.TextColor3 = Color3.fromRGB(0, 0, 0)
  76. plus.TextScaled = true
  77. plus.TextSize = 14.000
  78. plus.TextWrapped = true
  79.  
  80. speed.Name = "speed"
  81. speed.Parent = Frame
  82. speed.BackgroundColor3 = Color3.fromRGB(255, 85, 0)
  83. speed.Position = UDim2.new(0.468421042, 0, 0.491228074, 0)
  84. speed.Size = UDim2.new(0, 44, 0, 28)
  85. speed.Font = Enum.Font.SourceSans
  86. speed.Text = "1"
  87. speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  88. speed.TextScaled = true
  89. speed.TextSize = 14.000
  90. speed.TextWrapped = true
  91.  
  92. mine.Name = "mine"
  93. mine.Parent = Frame
  94. mine.BackgroundColor3 = Color3.fromRGB(123, 255, 247)
  95. mine.Position = UDim2.new(0.231578946, 0, 0.491228074, 0)
  96. mine.Size = UDim2.new(0, 45, 0, 29)
  97. mine.Font = Enum.Font.SourceSans
  98. mine.Text = "-"
  99. mine.TextColor3 = Color3.fromRGB(0, 0, 0)
  100. mine.TextScaled = true
  101. mine.TextSize = 14.000
  102. mine.TextWrapped = true
  103.  
  104. speeds = 1
  105.  
  106. local speaker = game:GetService("Players").LocalPlayer
  107.  
  108. local chr = game.Players.LocalPlayer.Character
  109. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  110.  
  111. nowe = false
  112.  
  113. Frame.Active = true -- main = gui
  114. Frame.Draggable = true
  115.  
  116. onof.MouseButton1Down:connect(function()
  117.  
  118. if nowe == true then
  119. nowe = false
  120.  
  121. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  122. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  123. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  124. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  125. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  126. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  127. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  128. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  129. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  130. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  131. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  132. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  133. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  134. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  135. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  136. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  137. else
  138. nowe = true
  139.  
  140.  
  141.  
  142. for i = 1, speeds do
  143. spawn(function()
  144.  
  145. local hb = game:GetService("RunService").Heartbeat
  146.  
  147.  
  148. tpwalking = true
  149. local chr = game.Players.LocalPlayer.Character
  150. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  151. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  152. if hum.MoveDirection.Magnitude > 0 then
  153. chr:TranslateBy(hum.MoveDirection)
  154. end
  155. end
  156.  
  157. end)
  158. end
  159. game.Players.LocalPlayer.Character.Animate.Disabled = true
  160. local Char = game.Players.LocalPlayer.Character
  161. local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  162.  
  163. for i,v in next, Hum:GetPlayingAnimationTracks() do
  164. v:AdjustSpeed(0)
  165. end
  166. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  167. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  168. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  169. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  170. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  171. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  172. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  173. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  174. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  175. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  176. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  177. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  178. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  179. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  180. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  181. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  182. end
  183.  
  184.  
  185.  
  186.  
  187. if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  188.  
  189.  
  190.  
  191. local plr = game.Players.LocalPlayer
  192. local torso = plr.Character.Torso
  193. local flying = true
  194. local deb = true
  195. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  196. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  197. local maxspeed = 50
  198. local speed = 0
  199.  
  200.  
  201. local bg = Instance.new("BodyGyro", torso)
  202. bg.P = 9e4
  203. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  204. bg.cframe = torso.CFrame
  205. local bv = Instance.new("BodyVelocity", torso)
  206. bv.velocity = Vector3.new(0,0.1,0)
  207. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  208. if nowe == true then
  209. plr.Character.Humanoid.PlatformStand = true
  210. end
  211. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  212. game:GetService("RunService").RenderStepped:Wait()
  213.  
  214. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  215. speed = speed+.5+(speed/maxspeed)
  216. if speed > maxspeed then
  217. speed = maxspeed
  218. end
  219. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  220. speed = speed-1
  221. if speed < 0 then
  222. speed = 0
  223. end
  224. end
  225. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  226. 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
  227. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  228. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  229. 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
  230. else
  231. bv.velocity = Vector3.new(0,0,0)
  232. end
  233. -- game.Players.LocalPlayer.Character.Animate.Disabled = true
  234. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  235. end
  236. ctrl = {f = 0, b = 0, l = 0, r = 0}
  237. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  238. speed = 0
  239. bg:Destroy()
  240. bv:Destroy()
  241. plr.Character.Humanoid.PlatformStand = false
  242. game.Players.LocalPlayer.Character.Animate.Disabled = false
  243. tpwalking = false
  244.  
  245.  
  246.  
  247.  
  248. else
  249. local plr = game.Players.LocalPlayer
  250. local UpperTorso = plr.Character.UpperTorso
  251. local flying = true
  252. local deb = true
  253. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  254. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  255. local maxspeed = 50
  256. local speed = 0
  257.  
  258.  
  259. local bg = Instance.new("BodyGyro", UpperTorso)
  260. bg.P = 9e4
  261. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  262. bg.cframe = UpperTorso.CFrame
  263. local bv = Instance.new("BodyVelocity", UpperTorso)
  264. bv.velocity = Vector3.new(0,0.1,0)
  265. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  266. if nowe == true then
  267. plr.Character.Humanoid.PlatformStand = true
  268. end
  269. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  270. wait()
  271.  
  272. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  273. speed = speed+.5+(speed/maxspeed)
  274. if speed > maxspeed then
  275. speed = maxspeed
  276. end
  277. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  278. speed = speed-1
  279. if speed < 0 then
  280. speed = 0
  281. end
  282. end
  283. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  284. 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
  285. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  286. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  287. 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
  288. else
  289. bv.velocity = Vector3.new(0,0,0)
  290. end
  291.  
  292. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  293. end
  294. ctrl = {f = 0, b = 0, l = 0, r = 0}
  295. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  296. speed = 0
  297. bg:Destroy()
  298. bv:Destroy()
  299. plr.Character.Humanoid.PlatformStand = false
  300. game.Players.LocalPlayer.Character.Animate.Disabled = false
  301. tpwalking = false
  302.  
  303.  
  304.  
  305. end
  306.  
  307.  
  308.  
  309.  
  310.  
  311. end)
  312.  
  313.  
  314. up.MouseButton1Down:connect(function()
  315. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,2,0)
  316.  
  317. end)
  318.  
  319.  
  320. down.MouseButton1Down:connect(function()
  321.  
  322. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-2,0)
  323.  
  324. end)
  325.  
  326.  
  327. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
  328. wait(0.7)
  329. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  330. game.Players.LocalPlayer.Character.Animate.Disabled = false
  331.  
  332. end)
  333.  
  334.  
  335. plus.MouseButton1Down:connect(function()
  336. speeds = speeds + 1
  337. speed.Text = speeds
  338. if nowe == true then
  339.  
  340.  
  341. tpwalking = false
  342. for i = 1, speeds do
  343. spawn(function()
  344.  
  345. local hb = game:GetService("RunService").Heartbeat
  346.  
  347.  
  348. tpwalking = true
  349. local chr = game.Players.LocalPlayer.Character
  350. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  351. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  352. if hum.MoveDirection.Magnitude > 0 then
  353. chr:TranslateBy(hum.MoveDirection)
  354. end
  355. end
  356.  
  357. end)
  358. end
  359. end
  360. end)
  361. mine.MouseButton1Down:connect(function()
  362. if speeds == 1 then
  363. speed.Text = 'can not be less than 1'
  364. wait(1)
  365. speed.Text = speeds
  366. else
  367. speeds = speeds - 1
  368. speed.Text = speeds
  369. if nowe == true then
  370. tpwalking = false
  371. for i = 1, speeds do
  372. spawn(function()
  373.  
  374. local hb = game:GetService("RunService").Heartbeat
  375.  
  376.  
  377. tpwalking = true
  378. local chr = game.Players.LocalPlayer.Character
  379. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  380. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  381. if hum.MoveDirection.Magnitude > 0 then
  382. chr:TranslateBy(hum.MoveDirection)
  383. end
  384. end
  385.  
  386. end)
  387. end
  388. end
  389. end
  390. end)
  391.  
Add Comment
Please, Sign In to add comment