Advertisement
Zwiebelle1301706

Universal

May 25th, 2024 (edited)
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.33 KB | None | 0 0
  1. local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
  2.  
  3. local Window = Rayfield:CreateWindow({
  4. Name = "VXPloits | Universal First Person Shooter hack| -> https://discord.gg/Jq2vZrhT <- ",
  5. LoadingTitle = "Loading Exploit",
  6. LoadingSubtitle = "by VXploits -> https://discord.gg/Jq2vZrhT ",
  7. ConfigurationSaving = {
  8. Enabled = true,
  9. FolderName = nil, -- Create a custom folder for your hub/game
  10. FileName = "MM2 Hub"
  11. },
  12. Discord = {
  13. Enabled = true,
  14. Invite = "https://discord.gg/Jq2vZrh", -- 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 = "KEY SYSTEM [NO LINKVERTISE NOTHING ONLY DISCORD]",
  20. Subtitle = "Key System in the key chanel",
  21. Note = "-> ttps://discord.gg/Jq2vZrh <-",
  22. FileName = "Key", -- It is recommended to use something unique as other scripts using Rayfield may overwrite your key file
  23. SaveKey = false, -- The user's key will be saved, but if you change the key, they will be unable to use your script
  24. GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  25. Key = {"iknowthiskeyisintstuipd902134u981wur89sahjf893h289tzg27f73g2hf7e"}
  26. }
  27. })
  28.  
  29. local Tab = Window:CreateTab("Universal ALL THE BUTTONS TO ENABLE AND DISABLE ARENT TOGGLES!", 4483362458) -- Title, Image
  30. local Section = Tab:CreateSection("Jumps")
  31.  
  32. local Toggle = Tab:CreateToggle({
  33. Name = "JumpPower ",
  34. CurrentValue = false,
  35. Flag = "Toggle2",
  36. Callback = function(Value)
  37. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 125
  38. end,
  39. })
  40.  
  41. local Toggle = Tab:CreateToggle({
  42. Name = "INF JUMP",
  43. CurrentValue = false,
  44. Flag = "Toggle14",
  45. Callback = function(Value)
  46. local infjmp = true
  47. game:GetService("UserInputService").jumpRequest:Connect(function()
  48. if infjmp then
  49. game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass"Humanoid":ChangeState("Jumping")
  50. end
  51. end)
  52. end,
  53. })
  54.  
  55. local Section = Tab:CreateSection("Aimbot and Esp!")
  56.  
  57. local Toggle = Tab:CreateToggle({
  58. Name = "ESP",
  59. CurrentValue = false,
  60. Flag = "ToggleCool", -- 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
  61. Callback = function(Value)
  62. -- instancing
  63. local drawing_new = Drawing.new
  64. local instance_new = Instance.new
  65.  
  66. -- workspace
  67. local vector2_new = Vector2.new
  68. local vector3_new = Vector3.new
  69. local cframe_new = CFrame.new
  70. local cframe_angles = CFrame.Angles
  71. local raycast_params_new = RaycastParams.new
  72. local raycast = workspace.Raycast
  73.  
  74. -- color
  75. local color3_rgb = Color3.fromRGB
  76. local color3_hsv = Color3.fromHSV
  77. local color3_new = Color3.new
  78.  
  79. -- math
  80. local math_floor = math.floor
  81. local math_ceil = math.ceil
  82. local math_atan2 = math.atan2
  83. local math_rad = math.rad
  84. local math_random = math.random
  85. local math_randomseed = math.randomseed
  86.  
  87. -- string
  88. local string_char = string.char
  89. local string_format = string.format
  90.  
  91. -- table
  92. local table_sort = table.sort
  93.  
  94. -- task
  95. local task_wait = task.wait
  96.  
  97. -- namecall
  98. local gdbd = game.GetDebugId
  99. local get_children = game.GetChildren
  100. local get_descendants = game.GetDescendants
  101. local find_first_child_of_class = game.FindFirstChildOfClass
  102. local find_first_child = game.FindFirstChild
  103. local is_descendant_of = game.IsDescendantOf
  104. local world_to_view_point = find_first_child_of_class(workspace, "Camera").WorldToViewportPoint
  105. local point_world_space = cframe_new().pointToWorldSpace
  106. local point_object_space = cframe_new().pointToObjectSpace
  107. local vector_world_space = cframe_new().vectorToWorldSpace
  108. local is_a = game.IsA
  109.  
  110. -- globals
  111. local workspace = workspace
  112. local pairs = pairs
  113. local pcall = pcall
  114. local tostring = tostring
  115. local tick = tick
  116. local getgenv = getgenv
  117. local mousemoverel = mousemoverel
  118. local mouse1press = mouse1press
  119. local mouse1release = mouse1release
  120.  
  121. -- random
  122. math_randomseed(tick())
  123. function random_string(len)
  124. local str = ""
  125. for i = 1, len do
  126. str = str .. string_char(math_random(97, 122))
  127. end
  128. return str
  129. end
  130.  
  131. getgenv().render_loop_stepped_name = renderloop_stepped_name or random_string(math_random(15, 35))
  132. getgenv().update_loop_stepped_name = update_loop_stepped_name or random_string(math_random(15, 35))
  133.  
  134. -- services
  135. local players = game:GetService("Players")
  136. local run_service = game:GetService("RunService")
  137. local uis = game:GetService("UserInputService")
  138.  
  139. -- other
  140. local local_player = players.LocalPlayer
  141. local mouse = local_player:GetMouse()
  142.  
  143. local cam = find_first_child_of_class(workspace, "Camera")
  144.  
  145. local screen_size = cam.ViewportSize
  146. local center_screen = vector2_new(screen_size.X / 2, screen_size.Y / 2)
  147.  
  148. local enum_rft_blk = Enum.RaycastFilterType.Blacklist
  149. local glass = Enum.Material.Glass
  150.  
  151. local white = color3_rgb(255, 255, 255)
  152. local green = color3_rgb(0, 255, 0)
  153.  
  154. local dummy_part = instance_new("Part", nil)
  155.  
  156. drawing_new("Square").Visible = false -- initialize drawing lib
  157.  
  158. local pi = math.pi
  159.  
  160. -- dont touch lol
  161. local custom_players = true
  162. local refresh_que = false
  163. local start_aim = false
  164. local aim_head = false
  165. local added_fov = 0
  166.  
  167. -- execute to apply
  168. local options = {
  169. -- global settings
  170. frame_delay = 10, -- delay between rendering each frame (in miliseconds)
  171. refresh_delay = 0.1, -- delay between refreshing script (in seconds)
  172. max_dist = 9e9, -- 9e9 = very big
  173. team_check = true,
  174. wall_check = false,
  175.  
  176. loop_all_humanoids = false, -- loop through workspace to find npc's to lock onto
  177. ignore_player_humanoids = true, -- will not lock onto/esp players (only if loop_all_humanoids is enabled)
  178.  
  179. -- ui settings (sort of ui)
  180. fov_circle = true,
  181. aiming_at = true,
  182.  
  183. -- aimbot settings
  184. aimbot = true,
  185. smoothness = 2,
  186. fov = 100,
  187. fov_increase_on_aim = 0, -- increases your fov by this value while the aimbot is active
  188. rage_mode = false, -- disregards fov, smoothness, odds and will lock onto people behind you
  189.  
  190. -- aim type settings
  191. mouse_emulation = true, -- the default, will emulate user input (and is more natural)
  192. camera_cframe = false, -- aimlock, easier to detect, does not obey the smoothness setting but locks instantly
  193.  
  194. -- will not lock on to people with this *username*, do not use a displayname for this, use the username
  195. ignore_people = {
  196. ["name"] = true, -- example of how you would exclude someone
  197. },
  198.  
  199. -- will try to prefire when aiming
  200. triggerbot = false,
  201.  
  202. -- aimbot activation settings
  203. acts_as_toggle = false,
  204.  
  205. -- https://developer.roblox.com/en-us/api-reference/enum/UserInputType
  206. mouse_key = Enum.UserInputType["MouseButton2"],
  207. -- how to disable: mouse_key = nil,
  208. -- how to enable: mouse_key = Enum.UserInputType["*"],
  209.  
  210. -- https://developer.roblox.com/en-us/api-reference/enum/KeyCode
  211. keyboard_key = Enum.KeyCode["E"],
  212. -- how to disable: keyboard_key = nil,
  213. -- how to enable: keyboard_key = Enum.KeyCode["*"],
  214.  
  215. -- headshot odds
  216. headshot_chance = 100, -- odds for aiming on the head in percentage, 0 = no head (lol) and 100 = always head
  217. update_on_refresh_delay = false, -- less nauseating, will recalculate odds every refresh instead of every frame
  218.  
  219. -- aiming prioritization options
  220. looking_at_you = false, -- whoever is most likely to hit you
  221. closest_to_center_screen = true,
  222. closest_to_you = false,
  223.  
  224. -- taxing, usually useless, will iterate backwards through players list if the "best player to lock onto" cant be locked onto
  225. backwards_iteration = false,
  226.  
  227. -- global esp settings
  228. esp = true,
  229. esp_thickness = 2,
  230.  
  231. -- esp settings
  232. tracers = true,
  233. box = true,
  234.  
  235. -- overhead esp settings
  236. overhead = true, -- disables name health and distance entirely
  237. name = true,
  238. distance = false,
  239. health = false,
  240. outline = true, -- text outline, laggier
  241.  
  242. -- rainbow settings
  243. rainbow = false,
  244. rainbow_speed = 5, -- lower is faster, 0.000001 is the lowest you can go
  245.  
  246. -- looking_at_tracer settings (lat = looking_at_tracer in short)
  247. looking_at_tracer = true, -- will show where a player is looking
  248.  
  249. --https://www.google.com/search?q=color+picker
  250. lat_color = color3_rgb(200, 0, 255), -- color in rgb
  251. lat_thickness = 2,
  252. lat_length = 3, -- how far the tracer will go (in studs)
  253.  
  254. -- crosshair settings
  255. crosshair = false,
  256.  
  257. crosshair_distance = 4,
  258. crosshair_thickness = 1,
  259. crosshair_length = 8;
  260. }
  261.  
  262. -- script already running?
  263. if remove_all_esp then
  264. run_service:UnbindFromRenderStep(render_loop_stepped_name)
  265. run_service:UnbindFromRenderStep(update_loop_stepped_name)
  266.  
  267. task_wait() -- wait for a frame to pass
  268.  
  269. remove_all_esp()
  270.  
  271. if descendant_hum_added then
  272. descendant_hum_added:Disconnect()
  273. descendant_hum_removing:Disconnect()
  274. player_name_added:Disconnect()
  275. player_name_removed:Disconnect()
  276. end
  277.  
  278. player_added:Disconnect()
  279. player_removed:Disconnect()
  280.  
  281. input_began:Disconnect()
  282. input_ended:Disconnect()
  283.  
  284. getgenv().remove_all_esp = nil
  285.  
  286. return;
  287. end
  288.  
  289. -- how the script will find the players
  290. local characters = {}
  291. local player_names = {}
  292.  
  293. local function get_players()
  294. local place = game.PlaceId
  295.  
  296. if options.loop_all_humanoids then
  297. if not player_names[local_player.Name] then -- ran for the first time
  298. -- get player names
  299. for _, val in pairs(get_children(players)) do
  300. player_names[val.Name] = true
  301. end
  302.  
  303. getgenv().player_name_added = players.ChildAdded:Connect(function(added)
  304. player_names[added.Name] = true
  305. end)
  306.  
  307. getgenv().player_name_removed = players.ChildRemoved:Connect(function(added)
  308. player_names[added.Name] = nil
  309. end)
  310.  
  311. -- get players with events
  312. for _, val in pairs(workspace:GetDescendants()) do
  313. if is_a(val, "Humanoid") and val.Parent ~= local_player.Character and not (options.ignore_player_humanoids and player_names[val.Parent.Name]) then
  314. characters[gdbd(val.Parent)] = val.Parent
  315. end
  316. end
  317.  
  318. getgenv().descendant_hum_added = workspace.DescendantAdded:Connect(function(added)
  319. if is_a(added, "Humanoid") and added.Parent ~= local_player.Character and not (options.ignore_player_humanoids and player_names[added.Parent.Name]) then
  320. characters[gdbd(added.Parent)] = added.Parent
  321. end
  322. end)
  323.  
  324. getgenv().descendant_hum_removing = workspace.DescendantRemoving:Connect(function(removing)
  325. if is_a(removing, "Humanoid") then
  326. characters[gdbd(removing.Parent)] = nil
  327. end
  328. end)
  329. end
  330.  
  331. return characters
  332. end
  333.  
  334. if place == 292439477 then -- phantom forces
  335. local leaderboard = local_player.PlayerGui.Leaderboard.Main
  336.  
  337. if leaderboard then
  338. if options.team_check then
  339. local is_ghost = pcall(function()
  340. return leaderboard.Ghosts.DataFrame.Data[local_player.Name]
  341. end)
  342.  
  343. return get_children(workspace.Players[(is_ghost and "Bright blue") or "Bright orange"])
  344. else
  345. local instance_table = {}
  346.  
  347. for idx, val in pairs(get_children(workspace.Players["Bright blue"])) do
  348. if is_a(val, "Model") then
  349. instance_table[#instance_table + 1] = val
  350. end
  351. end
  352.  
  353. for idx, val in pairs(get_children(workspace.Players["Bright orange"])) do
  354. if is_a(val, "Model") then
  355. instance_table[#instance_table + 1] = val
  356. end
  357. end
  358.  
  359. return instance_table -- return both teams
  360. end
  361. end
  362.  
  363. return {} -- wtf???
  364. end
  365.  
  366. if place == 3837841034 then
  367. return get_children(workspace.characters)
  368. end
  369.  
  370. if place == 5938036553 then
  371. local chars = {}
  372.  
  373. for _, val in pairs(get_children(workspace)) do
  374. if val.Name == "r15_rig" then
  375. chars[#chars + 1] = val
  376. end
  377. end
  378.  
  379. return chars
  380. end
  381.  
  382. custom_players = false
  383. return get_children(players)
  384. end
  385.  
  386. local aiming = {
  387. fov_circle_obj = nil,
  388. line = nil,
  389. circle = nil;
  390. }
  391.  
  392. local crosshair = {
  393. top = nil,
  394. bottom = nil,
  395. right = nil,
  396. left = nil;
  397. }
  398.  
  399. local players_table = {}
  400. local tracers = {}
  401. local quads = {}
  402. local overheads = {}
  403. local looking_at_tracers = {}
  404.  
  405. -- needed functions
  406. local function to_screen(vec3)
  407. local screen_pos, in_screen = world_to_view_point(cam, vec3)
  408.  
  409. return vector2_new(screen_pos.X, screen_pos.Y), in_screen, screen_pos, options.rage_mode
  410. end
  411.  
  412. local function get_part_corners(part)
  413. local size = part.Size * vector3_new(1, 1.5, 0)
  414.  
  415. local cf = part.CFrame
  416.  
  417. return {
  418. top_right = (cf * cframe_new(-size.X, -size.Y, 0)).Position,
  419. bottom_right = (cf * cframe_new(-size.X, size.Y, 0)).Position,
  420. top_left = (cf * cframe_new(size.X, -size.Y, 0)).Position,
  421. bottom_left = (cf * cframe_new(size.X, size.Y, 0)).Position,
  422. }
  423. end
  424.  
  425. local function new_drawing(class_name)
  426. return function(props)
  427. local inst = drawing_new(class_name)
  428.  
  429. for idx, val in pairs(props) do
  430. if idx ~= "instance" then
  431. inst[idx] = val
  432. end
  433. end
  434.  
  435. return inst
  436. end
  437. end
  438.  
  439. local function add_or_update_instance(tbl, child, props)
  440. local inst = tbl[child]
  441. if not inst then
  442. tbl[child] = new_drawing(props.instance)(props)
  443.  
  444. return inst;
  445. end
  446.  
  447. for idx, val in pairs(props) do
  448. if idx ~= "instance" then
  449. inst[idx] = val
  450. end
  451. end
  452.  
  453. return inst
  454. end
  455.  
  456. local function get_rainbow()
  457. return color3_hsv((tick() % options.rainbow_speed / options.rainbow_speed), 1, 1)
  458. end
  459.  
  460. local function remove_esp(idx)
  461. add_or_update_instance(tracers, idx, {
  462. Visible = false,
  463. instance = "Line"
  464. })
  465.  
  466. add_or_update_instance(quads, idx, {
  467. Visible = false,
  468. instance = "Quad"
  469. })
  470.  
  471. add_or_update_instance(overheads, idx, {
  472. Visible = false,
  473. instance = "Text"
  474. })
  475.  
  476. add_or_update_instance(looking_at_tracers, idx, {
  477. Visible = false,
  478. instance = "Line"
  479. })
  480. end
  481.  
  482. local ignored_instances = {}
  483.  
  484. local raycast_params = raycast_params_new()
  485. raycast_params.FilterType = enum_rft_blk
  486. raycast_params.IgnoreWater = true
  487.  
  488. local function can_hit(origin_pos, part)
  489. if not options.wall_check then
  490. return true
  491. end
  492.  
  493. local ignore_list = {cam, local_player.Character}
  494.  
  495. for idx, val in pairs(ignored_instances) do
  496. ignore_list[#ignore_list + 1] = val
  497. end
  498.  
  499. raycast_params.FilterDescendantsInstances = ignore_list
  500.  
  501. local raycast_result = raycast(workspace, origin_pos, (part.Position - origin_pos).Unit * options.max_dist, raycast_params)
  502.  
  503. local result_part = ((raycast_result and raycast_result.Instance) or dummy_part)
  504.  
  505. if result_part ~= dummy_part then
  506. if result_part.Transparency >= 0.3 then -- ignore low transparency
  507. ignored_instances[#ignored_instances + 1] = result_part
  508. end
  509.  
  510. if result_part.Material == glass then -- ignore glass
  511. ignored_instances[#ignored_instances + 1] = result_part
  512. end
  513. end
  514.  
  515. return is_descendant_of(result_part, part.Parent)
  516. end
  517.  
  518. local function hitting_what(origin_cframe)
  519. if not options.wall_check then
  520. return dummy_part
  521. end
  522.  
  523. local ignore_list = {cam, local_player.Character}
  524.  
  525. for idx, val in pairs(ignored_instances) do
  526. ignore_list[#ignore_list + 1] = val
  527. end
  528.  
  529. raycast_params.FilterDescendantsInstances = ignore_list
  530.  
  531. local raycast_result = raycast(workspace, origin_cframe.p, origin_cframe.LookVector * options.max_dist, raycast_params)
  532.  
  533. local result_part = ((raycast_result and raycast_result.Instance) or dummy_part)
  534.  
  535. if result_part ~= dummy_part then
  536. if result_part.Transparency >= 0.3 then -- ignore low transparency
  537. ignored_instances[#ignored_instances + 1] = result_part
  538. end
  539.  
  540. if result_part.Material == glass then -- ignore glass
  541. ignored_instances[#ignored_instances + 1] = result_part
  542. end
  543. end
  544.  
  545. return result_part
  546. end
  547.  
  548. local function is_inside_fov(point)
  549. return options.rage_mode or ((point.x - center_screen.X) ^ 2 + (point.y - center_screen.Y) ^ 2 <= aiming.fov_circle_obj.Radius ^ 2)
  550. end
  551.  
  552. local function chanced() -- shanced 2 - 0 gf *tabs*
  553. return options.rage_mode or math_random(1, 100) <= options.headshot_chance
  554. end
  555.  
  556. local function screen_height(yval)
  557. if yval > (screen_size.Y / 2) then
  558. return -0.5
  559. end
  560.  
  561. return 0.5
  562. end
  563.  
  564. local function _refresh()
  565. for idx in pairs(tracers) do -- hide all esp instances
  566. remove_esp(idx)
  567. end
  568.  
  569. players_table = get_players() -- fetch new player list
  570. end
  571.  
  572. local function refresh()
  573. refresh_que = true -- queue refresh before next render
  574. end
  575.  
  576. -- player events
  577. getgenv().player_added = players.ChildAdded:Connect(refresh)
  578. getgenv().player_removed = players.ChildRemoved:Connect(refresh)
  579.  
  580. -- aimbot triggers
  581. getgenv().input_began = uis.InputBegan:Connect(function(input)
  582. if input.KeyCode == options.keyboard_key then
  583. if options.acts_as_toggle then
  584. start_aim = not start_aim
  585. else
  586. start_aim = true
  587. end
  588.  
  589. if options.fov_increase_on_aim > 0 then
  590. for i = 1, options.fov_increase_on_aim * 0.3 do
  591. added_fov = added_fov + 3
  592. task_wait()
  593. end
  594.  
  595. added_fov = options.fov_increase_on_aim
  596. end
  597. end
  598.  
  599. if input.UserInputType == options.mouse_key then
  600. if options.acts_as_toggle then
  601. start_aim = not start_aim
  602. else
  603. start_aim = true
  604. end
  605.  
  606. if options.fov_increase_on_aim > 0 then
  607. for i = 1, options.fov_increase_on_aim * 0.3 do
  608. added_fov = added_fov + 3
  609. task_wait()
  610. end
  611.  
  612. added_fov = options.fov_increase_on_aim
  613. end
  614. end
  615. end)
  616.  
  617. getgenv().input_ended = uis.InputEnded:Connect(function(input)
  618. if input.KeyCode == options.keyboard_key then
  619. if not options.acts_as_toggle then
  620. start_aim = false
  621. end
  622.  
  623. if options.fov_increase_on_aim > 0 then
  624. for i = 1, options.fov_increase_on_aim * 0.3 do
  625. added_fov = added_fov - 3
  626.  
  627. task_wait()
  628. end
  629.  
  630. added_fov = 0
  631. end
  632. end
  633.  
  634. if input.UserInputType == options.mouse_key then
  635. if not options.acts_as_toggle then
  636. start_aim = false
  637. end
  638.  
  639. if options.fov_increase_on_aim > 0 then
  640. for i = 1, options.fov_increase_on_aim * 0.3 do
  641. added_fov = added_fov - 3
  642.  
  643. task_wait()
  644. end
  645.  
  646. added_fov = 0
  647. end
  648. end
  649. end)
  650.  
  651. local last_tick = 0;
  652.  
  653. local function stepped()
  654. if (tick() - last_tick) > (options.frame_delay / 1000) then
  655. last_tick = tick()
  656.  
  657. if refresh_que then -- refresh queed?
  658. _refresh()
  659.  
  660. refresh_que = false
  661. end
  662.  
  663. add_or_update_instance(aiming, "fov_circle_obj", {
  664. Visible = options.fov_circle,
  665. Thickness = options.esp_thickness,
  666. Radius = options.fov + added_fov,
  667. Position = center_screen,
  668. Color = (options.rainbow and get_rainbow()) or white,
  669. instance = "Circle";
  670. })
  671.  
  672. add_or_update_instance(crosshair, "top", {
  673. Visible = options.crosshair,
  674. Thickness = options.crosshair_thickness,
  675. From = vector2_new(center_screen.X, center_screen.Y - options.crosshair_length - options.crosshair_distance),
  676. To = vector2_new(center_screen.X, center_screen.Y - options.crosshair_distance),
  677. Color = (options.rainbow and get_rainbow()) or white,
  678. instance = "Line";
  679. })
  680.  
  681. add_or_update_instance(crosshair, "bottom", {
  682. Visible = options.crosshair,
  683. Thickness = options.crosshair_thickness,
  684. From = vector2_new(center_screen.X, center_screen.Y + options.crosshair_length + options.crosshair_distance + 1),
  685. To = vector2_new(center_screen.X, center_screen.Y + options.crosshair_distance + 1),
  686. Color = (options.rainbow and get_rainbow()) or white,
  687. instance = "Line";
  688. })
  689.  
  690. add_or_update_instance(crosshair, "left", {
  691. Visible = options.crosshair,
  692. Thickness = options.crosshair_thickness,
  693. From = vector2_new(center_screen.X - options.crosshair_length - options.crosshair_distance, center_screen.Y),
  694. To = vector2_new(center_screen.X - options.crosshair_distance, center_screen.Y),
  695. Color = (options.rainbow and get_rainbow()) or white,
  696. instance = "Line";
  697. })
  698.  
  699. add_or_update_instance(crosshair, "right", {
  700. Visible = options.crosshair,
  701. Thickness = options.crosshair_thickness,
  702. From = vector2_new(center_screen.X + options.crosshair_length + options.crosshair_distance + 1, center_screen.Y),
  703. To = vector2_new(center_screen.X + options.crosshair_distance + 1, center_screen.Y),
  704. Color = (options.rainbow and get_rainbow()) or white,
  705. instance = "Line";
  706. })
  707.  
  708. local closers_chars = {}
  709.  
  710. for _, plr in pairs(players_table) do
  711. local id = gdbd(plr)
  712.  
  713. if plr == local_player then continue; end
  714.  
  715. if options.ignore_people[plr.Name] then continue; end
  716.  
  717. if options.team_check and not options.loop_all_humanoids and not custom_players and plr.Team then
  718. if plr.TeamColor == local_player.TeamColor then remove_esp(id); continue; end
  719. if plr.Team == local_player.Team then remove_esp(id); continue; end
  720. end
  721.  
  722. local plr_char = ((options.loop_all_humanoids or custom_players) and plr) or plr.Character
  723. if plr_char == nil then remove_esp(id); continue; end
  724.  
  725. local root_part =
  726. find_first_child(plr_char, "Torso")
  727. or find_first_child(plr_char, "UpperTorso")
  728. or find_first_child(plr_char, "LowerTorso")
  729. or find_first_child(plr_char, "HumanoidRootPart")
  730. or find_first_child(plr_char, "Head")
  731. or find_first_child_of_class(plr_char, "BasePart")
  732.  
  733. if root_part == nil then remove_esp(id); continue; end
  734. if not is_a(root_part, "BasePart") then remove_esp(id); continue; end
  735.  
  736. local head = find_first_child(plr_char, "Head") or root_part
  737. if not is_a(head, "BasePart") then continue; end
  738.  
  739. local plr_screen, visible, scr_z = to_screen(head.Position)
  740. local mag = (head.Position - cam.CFrame.Position).Magnitude
  741.  
  742. if mag > options.max_dist then remove_esp(id); continue; end
  743.  
  744. if options.esp then
  745. local col = (options.rainbow and get_rainbow()) or white
  746. local corners = get_part_corners(root_part)
  747.  
  748. local a_screen, a_visible = to_screen(corners.top_left)
  749. local b_screen, b_visible = to_screen(corners.top_right)
  750. local c_screen, c_visible = to_screen(corners.bottom_right)
  751. local d_screen, d_visible = to_screen(corners.bottom_left)
  752.  
  753. if options.tracers then -- doesnt have a hide condition
  754. local object_space_pos = point_object_space(cam.CFrame, vector3_new(
  755. (corners.top_left.X + corners.top_right.X) / 2,
  756. (corners.top_left.Y + corners.top_right.Y) / 2,
  757. (corners.top_left.Z + corners.top_right.Z) / 2
  758. ))
  759.  
  760. if 0 > scr_z.Z then -- thanks unnamed esp for the math
  761. local angle = math_atan2(object_space_pos.Y, object_space_pos.X) + pi
  762. object_space_pos = vector_world_space(cframe_angles(0, 0, angle), (cframe_angles(0, math_rad(89.99), 0).LookVector))
  763. end
  764.  
  765. local tracer_pos = to_screen(point_world_space(cam.CFrame, object_space_pos))
  766.  
  767. add_or_update_instance(tracers, id, {
  768. Visible = options.esp,
  769. Thickness = options.esp_thickness,
  770. From = vector2_new(screen_size.X / 2, screen_size.Y - 36),
  771. To = tracer_pos,
  772. Color = (options.rainbow and get_rainbow()) or color3_new(255 / mag, mag / 255, 0),
  773. instance = "Line";
  774. })
  775. end
  776.  
  777. if options.box then
  778. if a_visible and b_visible and c_visible and d_visible then
  779. add_or_update_instance(quads, id, {
  780. Visible = options.esp,
  781. Thickness = options.esp_thickness,
  782. PointA = a_screen,
  783. PointB = b_screen,
  784. PointC = c_screen,
  785. PointD = d_screen,
  786. Color = col,
  787. instance = "Quad";
  788. })
  789. else
  790. add_or_update_instance(quads, id, {
  791. Visible = false,
  792. instance = "Quad";
  793. })
  794. end
  795. end
  796.  
  797. if options.looking_at_tracer then
  798. local a_head_src, a_visible = to_screen(head.Position)
  799. local b_lv_src, b_visible = to_screen(head.Position + head.CFrame.LookVector * options.lat_length)
  800.  
  801. if a_visible and b_visible then
  802. add_or_update_instance(looking_at_tracers, id, {
  803. Visible = options.esp,
  804. Thickness = options.lat_thickness,
  805. To = a_head_src,
  806. From = b_lv_src,
  807. Color = options.lat_color or white,
  808. instance = "Line";
  809. })
  810. else
  811. add_or_update_instance(looking_at_tracers, id, {
  812. Visible = false,
  813. instance = "Line";
  814. })
  815. end
  816. end
  817.  
  818. if options.overhead then
  819. local text = "";
  820.  
  821. if options.health then
  822. local hum = find_first_child_of_class(plr_char, "Humanoid")
  823.  
  824. if hum then
  825. text = string_format("%s[%d/%d] ", text, math_ceil(hum.Health), math_ceil(hum.MaxHealth))
  826. end
  827. end
  828.  
  829. if options.distance then
  830. text = string_format("%s[%d]\n", text, math_floor(mag))
  831. end
  832.  
  833. if options.name then
  834. text = string_format("%s%s ", text, plr.Name)
  835. end
  836.  
  837. local head_screen, h_visible = to_screen(head.Position + head.CFrame.UpVector * 2)
  838.  
  839. if h_visible then
  840. local obj = overheads[id]
  841.  
  842. add_or_update_instance(overheads, id, {
  843. Visible = options.esp,
  844. Outline = options.outline,
  845. Center = true,
  846. Position = head_screen - vector2_new(0, (obj and obj.TextBounds.Y) or 0),
  847. Text = text,
  848. Color = col,
  849. instance = "Text";
  850. })
  851. else
  852. add_or_update_instance(overheads, id, {
  853. Visible = false,
  854. instance = "Text";
  855. })
  856. end
  857. end
  858. end
  859.  
  860. if options.aimbot then
  861. if options.looking_at_you then
  862. closers_chars[((head.Position + head.CFrame.LookVector * mag) - cam.CFrame.p).Magnitude] = plr_char
  863. elseif options.closest_to_center_screen then
  864. closers_chars[(plr_screen - center_screen).Magnitude] = plr_char
  865. elseif options.closest_to_you then
  866. closers_chars[mag] = plr_char
  867. end
  868. end
  869. end -- sort players, esp, teamcheck
  870.  
  871. if not options.aimbot then return; end
  872.  
  873. local mags = {}
  874.  
  875. for idx in pairs(closers_chars) do
  876. mags[#mags + 1] = idx
  877. end
  878.  
  879. table_sort(mags)
  880.  
  881. local idx_sorted = {}
  882.  
  883. for _, idx in pairs(mags) do
  884. idx_sorted[#idx_sorted + 1] = closers_chars[idx]
  885. end
  886.  
  887. local run_aimbot = nil;
  888. run_aimbot = function(plr_offset)
  889. local char = idx_sorted[plr_offset]
  890.  
  891. if char then
  892. local children = get_children(char)
  893. local parts = {}
  894.  
  895. for _, obj in pairs(children) do
  896. if is_a(obj, "BasePart") then
  897. local part_screen, part_in_screen, _, rage = to_screen(obj.Position)
  898.  
  899. if can_hit(cam.CFrame.p, obj) and (part_in_screen or rage) and (is_inside_fov(part_screen) or rage) then
  900. local set = {
  901. part = obj,
  902. screen = part_screen,
  903. visible = part_in_screen;
  904. }
  905.  
  906. parts[obj.Name] = set
  907.  
  908. parts[0] = set -- set last part
  909. end
  910. end
  911. end
  912.  
  913. local chosen = nil;
  914.  
  915. if not options.update_on_refresh_delay then
  916. aim_head = chanced()
  917. end
  918.  
  919. if parts["Head"] and aim_head then
  920. chosen = parts["Head"]
  921. else
  922. local torso = parts["Torso"] or parts["UpperTorso"] or parts["LowerTorso"]
  923. if torso then
  924. chosen = torso
  925. else
  926. chosen = parts["Head"] or parts[0] -- aim on head if odds are against the head, but the torso isnt visible, or on other visible part
  927. end
  928. end
  929.  
  930. if chosen then
  931. local scale = (chosen.part.Size.Y / 2)
  932.  
  933. local top, top_z, top_visible = to_screen((chosen.part.CFrame * cframe_new(0, scale, 0)).Position);
  934. local bottom, bottom_z, bottom_visible = to_screen((chosen.part.CFrame * cframe_new(0, -scale, 0)).Position);
  935. local radius = -(top - bottom).y;
  936.  
  937. add_or_update_instance(aiming, "circle", {
  938. Visible = top_visible and bottom_visible and options.aiming_at,
  939. Thickness = options.esp_thickness,
  940. Radius = radius / 2,
  941. Position = chosen.screen,
  942. Color = (options.rainbow and get_rainbow()) or (start_aim and green) or white,
  943. instance = "Circle";
  944. })
  945.  
  946. if start_aim then
  947. add_or_update_instance(aiming, "line", {
  948. Visible = options.aiming_at,
  949. Thickness = options.esp_thickness,
  950. From = center_screen,
  951. To = chosen.screen,
  952. Color = (options.rainbow and get_rainbow()) or (start_aim and green) or white,
  953. instance = "Line";
  954. })
  955.  
  956. local smoothness = (options.rage_mode and 1) or options.smoothness
  957.  
  958. if chosen.visible then
  959. if options.mouse_emulation then
  960. mousemoverel((chosen.screen.X - mouse.X) / smoothness, (chosen.screen.Y - (mouse.Y + 36)) / smoothness)
  961. elseif options.camera_cframe then
  962. cam.CFrame = cframe_new(cam.CFrame.p, chosen.part.Position)
  963. end
  964. elseif options.rage_mode then
  965. if options.mouse_emulation then
  966. mousemoverel(screen_size.X / 4, (chosen.screen.Y - (mouse.Y + 36)) * screen_height(mouse.Y))
  967. elseif options.camera_cframe then
  968. cam.CFrame = cframe_new(cam.CFrame.p, chosen.part.Position)
  969. end
  970. end
  971.  
  972. if options.triggerbot then
  973. if is_descendant_of(hitting_what(cam.CFrame), chosen.part.Parent) then
  974. mouse1press()
  975. else
  976. mouse1release()
  977. end
  978. end
  979.  
  980. return;
  981. else
  982. if options.triggerbot then
  983. mouse1release()
  984. end
  985.  
  986. add_or_update_instance(aiming, "line", {
  987. Visible = false,
  988. instance = "Line";
  989. })
  990.  
  991. return;
  992. end -- aiming?
  993.  
  994. return; -- part is on screen, and in fov, no need to find a new player, loop ends here
  995. end -- part exists?
  996.  
  997. if options.triggerbot then
  998. mouse1release()
  999. end
  1000.  
  1001. add_or_update_instance(aiming, "line", {
  1002. Visible = false,
  1003. instance = "Line";
  1004. })
  1005.  
  1006. add_or_update_instance(aiming, "circle", {
  1007. Visible = false,
  1008. instance = "Circle";
  1009. })
  1010.  
  1011. if options.backwards_iteration then
  1012. run_aimbot(plr_offset + 1); -- previous player
  1013. end
  1014. end
  1015. end
  1016.  
  1017. run_aimbot(1);
  1018. end
  1019. end
  1020.  
  1021. local last_refresh = 0;
  1022.  
  1023. run_service:BindToRenderStep(render_loop_stepped_name, 300, function()
  1024. if (tick() - last_refresh) > options.refresh_delay then
  1025. last_refresh = tick()
  1026.  
  1027. if not cam or not cam.Parent or cam.Parent ~= workspace then
  1028. cam = find_first_child_of_class(workspace, "Camera")
  1029.  
  1030. world_to_view_point = cam.WorldToViewportPoint
  1031. end
  1032.  
  1033. if options.update_on_refresh_delay then
  1034. aim_head = chanced()
  1035. end
  1036.  
  1037. refresh()
  1038. end
  1039. end) -- refresher
  1040.  
  1041. run_service:BindToRenderStep(update_loop_stepped_name, 199, stepped)
  1042.  
  1043. -- kills esp
  1044. getgenv().remove_all_esp = function()
  1045. for idx in pairs(tracers) do -- hide all esp instances
  1046. remove_esp(idx)
  1047. end
  1048.  
  1049. -- aiming
  1050. add_or_update_instance(aiming, "fov_circle_obj", {
  1051. Visible = false,
  1052. instance = "Circle";
  1053. })
  1054.  
  1055. add_or_update_instance(aiming, "circle", {
  1056. Visible = false,
  1057. instance = "Circle";
  1058. })
  1059.  
  1060. add_or_update_instance(aiming, "line", {
  1061. Visible = false,
  1062. instance = "Line";
  1063. })
  1064.  
  1065. -- crosshair
  1066. add_or_update_instance(crosshair, "top", {
  1067. Visible = false,
  1068. instance = "Line";
  1069. })
  1070.  
  1071. add_or_update_instance(crosshair, "bottom", {
  1072. Visible = false,
  1073. instance = "Line";
  1074. })
  1075.  
  1076. add_or_update_instance(crosshair, "left", {
  1077. Visible = false,
  1078. instance = "Line";
  1079. })
  1080.  
  1081. add_or_update_instance(crosshair, "right", {
  1082. Visible = false,
  1083. instance = "Line";
  1084. })
  1085. end
  1086.  
  1087. end,
  1088. })
  1089.  
  1090. local Section = Tab:CreateSection("Speeds")
  1091.  
  1092. local Toggle = Tab:CreateToggle({
  1093. Name = "Speed",
  1094. CurrentValue = false,
  1095. Flag = "Toggle17",
  1096. Callback = function(Value)
  1097. local player = game.Players.LocalPlayer
  1098. local character = player.Character or player.CharacterAdded:Wait()
  1099. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  1100. local humanoid = character:WaitForChild("Humanoid")
  1101.  
  1102. local speedModifier = 200
  1103. local movementDirection = Vector3.new()
  1104.  
  1105. local userInputService = game:GetService("UserInputService")
  1106. local keysPressed = {}
  1107.  
  1108. userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
  1109. if not gameProcessedEvent then
  1110. if input.KeyCode == Enum.KeyCode.W then
  1111. keysPressed["W"] = true
  1112. elseif input.KeyCode == Enum.KeyCode.S then
  1113. keysPressed["S"] = true
  1114. elseif input.KeyCode == Enum.KeyCode.A then
  1115. keysPressed["A"] = true
  1116. elseif input.KeyCode == Enum.KeyCode.D then
  1117. keysPressed["D"] = true
  1118. end
  1119. end
  1120. end)
  1121.  
  1122. userInputService.InputEnded:Connect(function(input, gameProcessedEvent)
  1123. if not gameProcessedEvent then
  1124. if input.KeyCode == Enum.KeyCode.W then
  1125. keysPressed["W"] = nil
  1126. elseif input.KeyCode == Enum.KeyCode.S then
  1127. keysPressed["S"] = nil
  1128. elseif input.KeyCode == Enum.KeyCode.A then
  1129. keysPressed["A"] = nil
  1130. elseif input.KeyCode == Enum.KeyCode.D then
  1131. keysPressed["D"] = nil
  1132. end
  1133. end
  1134. end)
  1135.  
  1136. game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
  1137. movementDirection = Vector3.new()
  1138.  
  1139. local cameraVector = workspace.CurrentCamera.CFrame.LookVector
  1140. cameraVector = Vector3.new(cameraVector.X, 0, cameraVector.Z).Unit
  1141.  
  1142. if keysPressed["W"] then
  1143. movementDirection = movementDirection + cameraVector
  1144. end
  1145. if keysPressed["S"] then
  1146. movementDirection = movementDirection - cameraVector
  1147. end
  1148. if keysPressed["A"] then
  1149. movementDirection = movementDirection - cameraVector:Cross(Vector3.new(0, 1, 0))
  1150. end
  1151. if keysPressed["D"] then
  1152. movementDirection = movementDirection + cameraVector:Cross(Vector3.new(0, 1, 0))
  1153. end
  1154.  
  1155. if movementDirection ~= Vector3.new() then
  1156. local newPosition = humanoidRootPart.Position + (movementDirection.Unit * (speedModifier * deltaTime))
  1157.  
  1158. humanoidRootPart.CFrame = CFrame.new(newPosition, newPosition + humanoidRootPart.CFrame.LookVector)
  1159. end
  1160. end)
  1161.  
  1162. local function modifySpeed(newSpeedModifier)
  1163. speedModifier = newSpeedModifier
  1164. end
  1165. end,
  1166. })
  1167.  
  1168. local Toggle = Tab:CreateToggle({
  1169. Name = "AIMLOCK",
  1170. CurrentValue = false,
  1171. Flag = "ToggleAimlock",
  1172. Callback = function(Value)
  1173. -- Aimlock
  1174. local Area = game:GetService("Workspace")
  1175. local RunService = game:GetService("RunService")
  1176. local UIS = game:GetService("UserInputService")
  1177. local Players = game:GetService("Players")
  1178. local LocalPlayer = Players.LocalPlayer
  1179. local MyCharacter = LocalPlayer.Character
  1180. local MyRoot = MyCharacter:FindFirstChild("HumanoidRootPart")
  1181. local MyHumanoid = MyCharacter:FindFirstChild("Humanoid")
  1182. local Mouse = LocalPlayer:GetMouse()
  1183. local MyView = Area.CurrentCamera
  1184. local MyTeamColor = LocalPlayer.TeamColor
  1185. local HoldingM2 = false
  1186. local Active = false
  1187. local Lock = false
  1188. local Epitaph = .187
  1189. local HeadOffset = Vector3.new(0, .1, 0)
  1190.  
  1191. _G.TeamCheck = false
  1192. _G.AimPart = "HumanoidRootPart"
  1193. _G.Sensitivity = 0
  1194. _G.CircleSides = 64
  1195. _G.CircleColor = Color3.fromRGB(255, 0, 130)
  1196. _G.CircleTransparency = 0
  1197. _G.CircleRadius = 200
  1198. _G.CircleFilled = false
  1199. _G.CircleVisible = true
  1200. _G.CircleThickness = 1
  1201.  
  1202. local FOVCircle = Drawing.new("Circle")
  1203. FOVCircle.Position = Vector2.new(MyView.ViewportSize.X / 2, MyView.ViewportSize.Y / 2)
  1204. FOVCircle.Radius = _G.CircleRadius
  1205. FOVCircle.Filled = _G.CircleFilled
  1206. FOVCircle.Color = _G.CircleColor
  1207. FOVCircle.Visible = _G.CircleVisible
  1208. FOVCircle.Transparency = _G.CircleTransparency
  1209. FOVCircle.NumSides = _G.CircleSides
  1210. FOVCircle.Thickness = _G.CircleThickness
  1211.  
  1212. local function CursorLock()
  1213. UIS.MouseBehavior = Enum.MouseBehavior.LockCenter
  1214. end
  1215. local function UnLockCursor()
  1216. HoldingM2 = false Active = false Lock = false
  1217. UIS.MouseBehavior = Enum.MouseBehavior.Default
  1218. end
  1219. function FindNearestPlayer()
  1220. local dist = math.huge
  1221. local Target = nil
  1222. for _, v in pairs(Players:GetPlayers()) do
  1223. if v ~= LocalPlayer and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health > 0 and v.Character:FindFirstChild("HumanoidRootPart") and v then
  1224. local TheirCharacter = v.Character
  1225. local CharacterRoot, Visible = MyView:WorldToViewportPoint(TheirCharacter[_G.AimPart].Position)
  1226. if Visible then
  1227. local RealMag = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(CharacterRoot.X, CharacterRoot.Y)).Magnitude
  1228. if RealMag < dist and RealMag < FOVCircle.Radius then
  1229. dist = RealMag
  1230. Target = TheirCharacter
  1231. end
  1232. end
  1233. end
  1234. end
  1235. return Target
  1236. end
  1237.  
  1238. UIS.InputBegan:Connect(function(Input)
  1239. if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  1240. HoldingM2 = true
  1241. Active = true
  1242. Lock = true
  1243. if Active then
  1244. local The_Enemy = FindNearestPlayer()
  1245. while HoldingM2 do task.wait(.000001)
  1246. if Lock and The_Enemy ~= nil then
  1247. local Future = The_Enemy.HumanoidRootPart.CFrame + (The_Enemy.HumanoidRootPart.Velocity * Epitaph + HeadOffset)
  1248. MyView.CFrame = CFrame.lookAt(MyView.CFrame.Position, Future.Position)
  1249. CursorLock()
  1250. end
  1251. end
  1252. end
  1253. end
  1254. end)
  1255. UIS.InputEnded:Connect(function(Input)
  1256. if Input.UserInputType == Enum.UserInputType.MouseButton2 then
  1257. UnLockCursor()
  1258. end
  1259. end)
  1260. game.StarterGui:SetCore("SendNotification", {Title = "Eternal Lock V3", Text = "Loaded", Duration = 5,})
  1261. end,
  1262. })
  1263.  
  1264. local Section = Tab:CreateSection("Fly & Noclip")
  1265.  
  1266. local Button = Tab:CreateButton({
  1267. Name = "Noclip! [GUI]",
  1268. Callback = function()
  1269. local Workspace = game:GetService("Workspace")
  1270. local CoreGui = game:GetService("CoreGui")
  1271. local Players = game:GetService("Players")
  1272. local Noclip = Instance.new("ScreenGui")
  1273. local BG = Instance.new("Frame")
  1274. local Title = Instance.new("TextLabel")
  1275. local Toggle = Instance.new("TextButton")
  1276. local StatusPF = Instance.new("TextLabel")
  1277. local Status = Instance.new("TextLabel")
  1278. local Credit = Instance.new("TextLabel")
  1279. local Plr = Players.LocalPlayer
  1280. local Clipon = false
  1281.  
  1282. Noclip.Name = "Noclip"
  1283. Noclip.Parent = game.CoreGui
  1284.  
  1285. BG.Name = "BG"
  1286. BG.Parent = Noclip
  1287. BG.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  1288. BG.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  1289. BG.BorderSizePixel = 2
  1290. BG.Position = UDim2.new(0.149479166, 0, 0.82087779, 0)
  1291. BG.Size = UDim2.new(0, 210, 0, 127)
  1292. BG.Active = true
  1293. BG.Draggable = true
  1294.  
  1295. Title.Name = "Title"
  1296. Title.Parent = BG
  1297. Title.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451)
  1298. Title.BorderColor3 = Color3.new(0.180392, 0, 0.431373)
  1299. Title.BorderSizePixel = 2
  1300. Title.Size = UDim2.new(0, 210, 0, 33)
  1301. Title.Font = Enum.Font.Highway
  1302. Title.Text = "Noclip"
  1303. Title.TextColor3 = Color3.new(1, 1, 1)
  1304. Title.FontSize = Enum.FontSize.Size32
  1305. Title.TextSize = 30
  1306. Title.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
  1307. Title.TextStrokeTransparency = 0
  1308.  
  1309. Toggle.Parent = BG
  1310. Toggle.BackgroundColor3 = Color3.new(0.266667, 0.00392157, 0.627451)
  1311. Toggle.BorderColor3 = Color3.new(0.180392, 0, 0.431373)
  1312. Toggle.BorderSizePixel = 2
  1313. Toggle.Position = UDim2.new(0.152380958, 0, 0.374192119, 0)
  1314. Toggle.Size = UDim2.new(0, 146, 0, 36)
  1315. Toggle.Font = Enum.Font.Highway
  1316. Toggle.FontSize = Enum.FontSize.Size28
  1317. Toggle.Text = "Toggle"
  1318. Toggle.TextColor3 = Color3.new(1, 1, 1)
  1319. Toggle.TextSize = 25
  1320. Toggle.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
  1321. Toggle.TextStrokeTransparency = 0
  1322.  
  1323. StatusPF.Name = "StatusPF"
  1324. StatusPF.Parent = BG
  1325. StatusPF.BackgroundColor3 = Color3.new(1, 1, 1)
  1326. StatusPF.BackgroundTransparency = 1
  1327. StatusPF.Position = UDim2.new(0.314285725, 0, 0.708661377, 0)
  1328. StatusPF.Size = UDim2.new(0, 56, 0, 20)
  1329. StatusPF.Font = Enum.Font.Highway
  1330. StatusPF.FontSize = Enum.FontSize.Size24
  1331. StatusPF.Text = "Status:"
  1332. StatusPF.TextColor3 = Color3.new(1, 1, 1)
  1333. StatusPF.TextSize = 20
  1334. StatusPF.TextStrokeColor3 = Color3.new(0.333333, 0.333333, 0.333333)
  1335. StatusPF.TextStrokeTransparency = 0
  1336. StatusPF.TextWrapped = true
  1337.  
  1338. Status.Name = "Status"
  1339. Status.Parent = BG
  1340. Status.BackgroundColor3 = Color3.new(1, 1, 1)
  1341. Status.BackgroundTransparency = 1
  1342. Status.Position = UDim2.new(0.580952346, 0, 0.708661377, 0)
  1343. Status.Size = UDim2.new(0, 56, 0, 20)
  1344. Status.Font = Enum.Font.Highway
  1345. Status.FontSize = Enum.FontSize.Size14
  1346. Status.Text = "off"
  1347. Status.TextColor3 = Color3.new(0.666667, 0, 0)
  1348. Status.TextScaled = true
  1349. Status.TextSize = 14
  1350. Status.TextStrokeColor3 = Color3.new(0.180392, 0, 0.431373)
  1351. Status.TextWrapped = true
  1352. Status.TextXAlignment = Enum.TextXAlignment.Left
  1353.  
  1354. Credit.Name = "Credit"
  1355. Credit.Parent = BG
  1356. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  1357. Credit.BackgroundTransparency = 1
  1358. Credit.Position = UDim2.new(0.195238099, 0, 0.866141737, 0)
  1359. Credit.Size = UDim2.new(0, 128, 0, 17)
  1360. Credit.Font = Enum.Font.SourceSans
  1361. Credit.FontSize = Enum.FontSize.Size18
  1362. Credit.Text = "Created by VXPloits"
  1363. Credit.TextColor3 = Color3.new(1, 1, 1)
  1364. Credit.TextSize = 16
  1365. Credit.TextStrokeColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  1366. Credit.TextStrokeTransparency = 0
  1367. Credit.TextWrapped = true
  1368.  
  1369. Toggle.MouseButton1Click:connect(function()
  1370. if Status.Text == "off" then
  1371. Clipon = true
  1372. Status.Text = "on"
  1373. Status.TextColor3 = Color3.new(0,185,0)
  1374. Stepped = game:GetService("RunService").Stepped:Connect(function()
  1375. if not Clipon == false then
  1376. for a, b in pairs(Workspace:GetChildren()) do
  1377. if b.Name == Plr.Name then
  1378. for i, v in pairs(Workspace[Plr.Name]:GetChildren()) do
  1379. if v:IsA("BasePart") then
  1380. v.CanCollide = false
  1381. end end end end
  1382. else
  1383. Stepped:Disconnect()
  1384. end
  1385. end)
  1386. elseif Status.Text == "on" then
  1387. Clipon = false
  1388. Status.Text = "off"
  1389. Status.TextColor3 = Color3.new(170,0,0)
  1390. end
  1391. end)
  1392. end,
  1393. })
  1394.  
  1395. local Button = Tab:CreateButton({
  1396. Name = "Fly [GUI]!",
  1397. Callback = function()
  1398. local main = Instance.new("ScreenGui")
  1399.  
  1400. local Frame = Instance.new("Frame")
  1401.  
  1402. local up = Instance.new("TextButton")
  1403.  
  1404. local down = Instance.new("TextButton")
  1405.  
  1406. local onof = Instance.new("TextButton")
  1407.  
  1408. local TextLabel = Instance.new("TextLabel")
  1409.  
  1410. local plus = Instance.new("TextButton")
  1411.  
  1412. local speed = Instance.new("TextLabel")
  1413.  
  1414. local mine = Instance.new("TextButton")
  1415.  
  1416. local closebutton = Instance.new("TextButton")
  1417.  
  1418. local mini = Instance.new("TextButton")
  1419.  
  1420. local mini2 = Instance.new("TextButton")
  1421.  
  1422.  
  1423.  
  1424. main.Name = "main"
  1425.  
  1426. main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  1427.  
  1428. main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  1429.  
  1430. main.ResetOnSpawn = false
  1431.  
  1432.  
  1433.  
  1434. Frame.Parent = main
  1435.  
  1436. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1437.  
  1438. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  1439.  
  1440. Frame.Position = UDim2.new(0.100320168, 0, 0.379746825, 0)
  1441.  
  1442. Frame.Size = UDim2.new(0, 190, 0, 57)
  1443.  
  1444.  
  1445.  
  1446. up.Name = "up"
  1447.  
  1448. up.Parent = Frame
  1449.  
  1450. up.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1451.  
  1452. up.Size = UDim2.new(0, 44, 0, 28)
  1453.  
  1454. up.Font = Enum.Font.SourceSans
  1455.  
  1456. up.Text = "↑"
  1457.  
  1458. up.TextColor3 = Color3.fromRGB(0, 0, 0)
  1459.  
  1460. up.TextSize = 14.000
  1461.  
  1462.  
  1463.  
  1464. down.Name = "down"
  1465.  
  1466. down.Parent = Frame
  1467.  
  1468. down.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1469.  
  1470. down.Position = UDim2.new(0, 0, 0.491228074, 0)
  1471.  
  1472. down.Size = UDim2.new(0, 44, 0, 28)
  1473.  
  1474. down.Font = Enum.Font.SourceSans
  1475.  
  1476. down.Text = "↓"
  1477.  
  1478. down.TextColor3 = Color3.fromRGB(0, 0, 0)
  1479.  
  1480. down.TextSize = 14.000
  1481.  
  1482.  
  1483.  
  1484. onof.Name = "onof"
  1485.  
  1486. onof.Parent = Frame
  1487.  
  1488. onof.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1489.  
  1490. onof.Position = UDim2.new(0.702823281, 0, 0.491228074, 0)
  1491.  
  1492. onof.Size = UDim2.new(0, 56, 0, 28)
  1493.  
  1494. onof.Font = Enum.Font.Michroma
  1495.  
  1496. onof.Text = "FLY"
  1497.  
  1498. onof.TextColor3 = Color3.fromRGB(0, 0, 0)
  1499.  
  1500. onof.TextSize = 14.000
  1501.  
  1502.  
  1503.  
  1504. TextLabel.Parent = Frame
  1505.  
  1506. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1507.  
  1508. TextLabel.Position = UDim2.new(0.469327301, 0, 0, 0)
  1509.  
  1510. TextLabel.Size = UDim2.new(0, 100, 0, 28)
  1511.  
  1512. TextLabel.Font = Enum.Font.Michroma
  1513.  
  1514. TextLabel.Text = "Fly GUI Created by VXPLoits "
  1515.  
  1516. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  1517.  
  1518. TextLabel.TextScaled = true
  1519.  
  1520. TextLabel.TextSize = 14.000
  1521.  
  1522. TextLabel.TextWrapped = true
  1523.  
  1524.  
  1525.  
  1526. plus.Name = "plus"
  1527.  
  1528. plus.Parent = Frame
  1529.  
  1530. plus.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1531.  
  1532. plus.Position = UDim2.new(0.231578946, 0, 0, 0)
  1533.  
  1534. plus.Size = UDim2.new(0, 45, 0, 28)
  1535.  
  1536. plus.Font = Enum.Font.SourceSans
  1537.  
  1538. plus.Text = "+"
  1539.  
  1540. plus.TextColor3 = Color3.fromRGB(0, 0, 0)
  1541.  
  1542. plus.TextScaled = true
  1543.  
  1544. plus.TextSize = 14.000
  1545.  
  1546. plus.TextWrapped = true
  1547.  
  1548.  
  1549.  
  1550. speed.Name = "speed"
  1551.  
  1552. speed.Parent = Frame
  1553.  
  1554. speed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1555.  
  1556. speed.Position = UDim2.new(0.468421042, 0, 0.491228074, 0)
  1557.  
  1558. speed.Size = UDim2.new(0, 44, 0, 28)
  1559.  
  1560. speed.Font = Enum.Font.SourceSans
  1561.  
  1562. speed.Text = "1"
  1563.  
  1564. speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  1565.  
  1566. speed.TextScaled = true
  1567.  
  1568. speed.TextSize = 14.000
  1569.  
  1570. speed.TextWrapped = true
  1571.  
  1572.  
  1573.  
  1574. mine.Name = "mine"
  1575.  
  1576. mine.Parent = Frame
  1577.  
  1578. mine.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1579.  
  1580. mine.Position = UDim2.new(0.231578946, 0, 0.491228074, 0)
  1581.  
  1582. mine.Size = UDim2.new(0, 45, 0, 29)
  1583.  
  1584. mine.Font = Enum.Font.SourceSans
  1585.  
  1586. mine.Text = "-"
  1587.  
  1588. mine.TextColor3 = Color3.fromRGB(0, 0, 0)
  1589.  
  1590. mine.TextScaled = true
  1591.  
  1592. mine.TextSize = 14.000
  1593.  
  1594. mine.TextWrapped = true
  1595.  
  1596.  
  1597.  
  1598. closebutton.Name = "Close"
  1599.  
  1600. closebutton.Parent = main.Frame
  1601.  
  1602. closebutton.BackgroundColor3 = Color3.fromRGB(255, 5, 5)
  1603.  
  1604. closebutton.Font = "Michroma"
  1605.  
  1606. closebutton.Size = UDim2.new(0, 45, 0, 28)
  1607.  
  1608. closebutton.Text = "x"
  1609.  
  1610. closebutton.TextSize = 30
  1611.  
  1612. closebutton.Position = UDim2.new(0, 0, -1, 27)
  1613.  
  1614.  
  1615.  
  1616. mini.Name = "minimize"
  1617.  
  1618. mini.Parent = main.Frame
  1619.  
  1620. mini.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
  1621.  
  1622. mini.Font = "Michroma"
  1623.  
  1624. mini.Size = UDim2.new(0, 45, 0, 28)
  1625.  
  1626. mini.Text = "-"
  1627.  
  1628. mini.TextSize = 40
  1629.  
  1630. mini.Position = UDim2.new(0, 44, -1, 27)
  1631.  
  1632.  
  1633.  
  1634. mini2.Name = "minimize2"
  1635.  
  1636. mini2.Parent = main.Frame
  1637.  
  1638. mini2.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
  1639.  
  1640. mini2.Font = "SourceSans"
  1641.  
  1642. mini2.Size = UDim2.new(0, 45, 0, 28)
  1643.  
  1644. mini2.Text = "+"
  1645.  
  1646. mini2.TextSize = 40
  1647.  
  1648. mini2.Position = UDim2.new(0, 44, -1, 57)
  1649.  
  1650. mini2.Visible = false
  1651.  
  1652.  
  1653.  
  1654. speeds = 1
  1655.  
  1656.  
  1657.  
  1658. local speaker = game:GetService("Players").LocalPlayer
  1659.  
  1660.  
  1661.  
  1662. local chr = game.Players.LocalPlayer.Character
  1663.  
  1664. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  1665.  
  1666.  
  1667.  
  1668. nowe = false
  1669.  
  1670.  
  1671.  
  1672. game:GetService("StarterGui"):SetCore("SendNotification", {
  1673.  
  1674. Title = "FLY GUI MODDED";
  1675.  
  1676. Text = "Fly gui Modded v1 by shad0w_TYLER8";
  1677.  
  1678. Icon = "rbxthumb://type=Asset&id=5107182114&w=150&h=150"})
  1679.  
  1680. Duration = 5;
  1681.  
  1682.  
  1683.  
  1684. Frame.Active = true -- main = gui
  1685.  
  1686. Frame.Draggable = true
  1687.  
  1688.  
  1689.  
  1690. onof.MouseButton1Down:connect(function()
  1691.  
  1692.  
  1693.  
  1694. if nowe == true then
  1695.  
  1696. nowe = false
  1697.  
  1698.  
  1699.  
  1700. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  1701.  
  1702. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  1703.  
  1704. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  1705.  
  1706. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  1707.  
  1708. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  1709.  
  1710. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  1711.  
  1712. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  1713.  
  1714. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  1715.  
  1716. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  1717.  
  1718. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  1719.  
  1720. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  1721.  
  1722. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  1723.  
  1724. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  1725.  
  1726. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  1727.  
  1728. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  1729.  
  1730. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  1731.  
  1732. else
  1733.  
  1734. nowe = true
  1735.  
  1736.  
  1737.  
  1738.  
  1739.  
  1740.  
  1741.  
  1742. for i = 1, speeds do
  1743.  
  1744. spawn(function()
  1745.  
  1746.  
  1747.  
  1748. local hb = game:GetService("RunService").Heartbeat
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754. tpwalking = true
  1755.  
  1756. local chr = game.Players.LocalPlayer.Character
  1757.  
  1758. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  1759.  
  1760. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  1761.  
  1762. if hum.MoveDirection.Magnitude > 0 then
  1763.  
  1764. chr:TranslateBy(hum.MoveDirection)
  1765.  
  1766. end
  1767.  
  1768. end
  1769.  
  1770.  
  1771.  
  1772. end)
  1773.  
  1774. end
  1775.  
  1776. game.Players.LocalPlayer.Character.Animate.Disabled = true
  1777.  
  1778. local Char = game.Players.LocalPlayer.Character
  1779.  
  1780. local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  1781.  
  1782.  
  1783.  
  1784. for i,v in next, Hum:GetPlayingAnimationTracks() do
  1785.  
  1786. v:AdjustSpeed(0)
  1787.  
  1788. end
  1789.  
  1790. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  1791.  
  1792. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  1793.  
  1794. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  1795.  
  1796. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  1797.  
  1798. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  1799.  
  1800. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  1801.  
  1802. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  1803.  
  1804. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  1805.  
  1806. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  1807.  
  1808. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  1809.  
  1810. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  1811.  
  1812. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  1813.  
  1814. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  1815.  
  1816. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  1817.  
  1818. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  1819.  
  1820. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  1821.  
  1822. end
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832. if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840. local plr = game.Players.LocalPlayer
  1841.  
  1842. local torso = plr.Character.Torso
  1843.  
  1844. local flying = true
  1845.  
  1846. local deb = true
  1847.  
  1848. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  1849.  
  1850. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  1851.  
  1852. local maxspeed = 50
  1853.  
  1854. local speed = 0
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860. local bg = Instance.new("BodyGyro", torso)
  1861.  
  1862. bg.P = 9e4
  1863.  
  1864. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  1865.  
  1866. bg.cframe = torso.CFrame
  1867.  
  1868. local bv = Instance.new("BodyVelocity", torso)
  1869.  
  1870. bv.velocity = Vector3.new(0,0.1,0)
  1871.  
  1872. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  1873.  
  1874. if nowe == true then
  1875.  
  1876. plr.Character.Humanoid.PlatformStand = true
  1877.  
  1878. end
  1879.  
  1880. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  1881.  
  1882. game:GetService("RunService").RenderStepped:Wait()
  1883.  
  1884.  
  1885.  
  1886. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  1887.  
  1888. speed = speed+.5+(speed/maxspeed)
  1889.  
  1890. if speed > maxspeed then
  1891.  
  1892. speed = maxspeed
  1893.  
  1894. end
  1895.  
  1896. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  1897.  
  1898. speed = speed-1
  1899.  
  1900. if speed < 0 then
  1901.  
  1902. speed = 0
  1903.  
  1904. end
  1905.  
  1906. end
  1907.  
  1908. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  1909.  
  1910. 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
  1911.  
  1912. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  1913.  
  1914. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  1915.  
  1916. 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
  1917.  
  1918. else
  1919.  
  1920. bv.velocity = Vector3.new(0,0,0)
  1921.  
  1922. end
  1923.  
  1924. -- game.Players.LocalPlayer.Character.Animate.Disabled = true
  1925.  
  1926. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  1927.  
  1928. end
  1929.  
  1930. ctrl = {f = 0, b = 0, l = 0, r = 0}
  1931.  
  1932. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  1933.  
  1934. speed = 0
  1935.  
  1936. bg:Destroy()
  1937.  
  1938. bv:Destroy()
  1939.  
  1940. plr.Character.Humanoid.PlatformStand = false
  1941.  
  1942. game.Players.LocalPlayer.Character.Animate.Disabled = false
  1943.  
  1944. tpwalking = false
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954. else
  1955.  
  1956. local plr = game.Players.LocalPlayer
  1957.  
  1958. local UpperTorso = plr.Character.UpperTorso
  1959.  
  1960. local flying = true
  1961.  
  1962. local deb = true
  1963.  
  1964. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  1965.  
  1966. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  1967.  
  1968. local maxspeed = 50
  1969.  
  1970. local speed = 0
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976. local bg = Instance.new("BodyGyro", UpperTorso)
  1977.  
  1978. bg.P = 9e4
  1979.  
  1980. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  1981.  
  1982. bg.cframe = UpperTorso.CFrame
  1983.  
  1984. local bv = Instance.new("BodyVelocity", UpperTorso)
  1985.  
  1986. bv.velocity = Vector3.new(0,0.1,0)
  1987.  
  1988. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  1989.  
  1990. if nowe == true then
  1991.  
  1992. plr.Character.Humanoid.PlatformStand = true
  1993.  
  1994. end
  1995.  
  1996. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  1997.  
  1998. wait()
  1999.  
  2000.  
  2001.  
  2002. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  2003.  
  2004. speed = speed+.5+(speed/maxspeed)
  2005.  
  2006. if speed > maxspeed then
  2007.  
  2008. speed = maxspeed
  2009.  
  2010. end
  2011.  
  2012. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  2013.  
  2014. speed = speed-1
  2015.  
  2016. if speed < 0 then
  2017.  
  2018. speed = 0
  2019.  
  2020. end
  2021.  
  2022. end
  2023.  
  2024. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  2025.  
  2026. 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
  2027.  
  2028. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  2029.  
  2030. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  2031.  
  2032. 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
  2033.  
  2034. else
  2035.  
  2036. bv.velocity = Vector3.new(0,0,0)
  2037.  
  2038. end
  2039.  
  2040.  
  2041.  
  2042. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  2043.  
  2044. end
  2045.  
  2046. ctrl = {f = 0, b = 0, l = 0, r = 0}
  2047.  
  2048. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  2049.  
  2050. speed = 0
  2051.  
  2052. bg:Destroy()
  2053.  
  2054. bv:Destroy()
  2055.  
  2056. plr.Character.Humanoid.PlatformStand = false
  2057.  
  2058. game.Players.LocalPlayer.Character.Animate.Disabled = false
  2059.  
  2060. tpwalking = false
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068. end
  2069.  
  2070.  
  2071.  
  2072.  
  2073.  
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080. end)
  2081.  
  2082.  
  2083.  
  2084. local tis
  2085.  
  2086.  
  2087.  
  2088. up.MouseButton1Down:connect(function()
  2089.  
  2090. tis = up.MouseEnter:connect(function()
  2091.  
  2092. while tis do
  2093.  
  2094. wait()
  2095.  
  2096. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,1,0)
  2097.  
  2098. end
  2099.  
  2100. end)
  2101.  
  2102. end)
  2103.  
  2104.  
  2105.  
  2106. up.MouseLeave:connect(function()
  2107.  
  2108. if tis then
  2109.  
  2110. tis:Disconnect()
  2111.  
  2112. tis = nil
  2113.  
  2114. end
  2115.  
  2116. end)
  2117.  
  2118.  
  2119.  
  2120. local dis
  2121.  
  2122.  
  2123.  
  2124. down.MouseButton1Down:connect(function()
  2125.  
  2126. dis = down.MouseEnter:connect(function()
  2127.  
  2128. while dis do
  2129.  
  2130. wait()
  2131.  
  2132. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame * CFrame.new(0,-1,0)
  2133.  
  2134. end
  2135.  
  2136. end)
  2137.  
  2138. end)
  2139.  
  2140.  
  2141.  
  2142. down.MouseLeave:connect(function()
  2143.  
  2144. if dis then
  2145.  
  2146. dis:Disconnect()
  2147.  
  2148. dis = nil
  2149.  
  2150. end
  2151.  
  2152. end)
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(function(char)
  2159.  
  2160. wait(0.7)
  2161.  
  2162. game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
  2163.  
  2164. game.Players.LocalPlayer.Character.Animate.Disabled = false
  2165.  
  2166.  
  2167.  
  2168. end)
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174. plus.MouseButton1Down:connect(function()
  2175.  
  2176. speeds = speeds + 1
  2177.  
  2178. speed.Text = speeds
  2179.  
  2180. if nowe == true then
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186. tpwalking = false
  2187.  
  2188. for i = 1, speeds do
  2189.  
  2190. spawn(function()
  2191.  
  2192.  
  2193.  
  2194. local hb = game:GetService("RunService").Heartbeat
  2195.  
  2196.  
  2197.  
  2198.  
  2199.  
  2200. tpwalking = true
  2201.  
  2202. local chr = game.Players.LocalPlayer.Character
  2203.  
  2204. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  2205.  
  2206. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  2207.  
  2208. if hum.MoveDirection.Magnitude > 0 then
  2209.  
  2210. chr:TranslateBy(hum.MoveDirection)
  2211.  
  2212. end
  2213.  
  2214. end
  2215.  
  2216.  
  2217.  
  2218. end)
  2219.  
  2220. end
  2221.  
  2222. end
  2223.  
  2224. end)
  2225.  
  2226. mine.MouseButton1Down:connect(function()
  2227.  
  2228. if speeds == 1 then
  2229.  
  2230. speed.Text = '-1 speed fly bruh'
  2231.  
  2232. wait(1)
  2233.  
  2234. speed.Text = speeds
  2235.  
  2236. else
  2237.  
  2238. speeds = speeds - 1
  2239.  
  2240. speed.Text = speeds
  2241.  
  2242. if nowe == true then
  2243.  
  2244. tpwalking = false
  2245.  
  2246. for i = 1, speeds do
  2247.  
  2248. spawn(function()
  2249.  
  2250.  
  2251.  
  2252. local hb = game:GetService("RunService").Heartbeat
  2253.  
  2254.  
  2255.  
  2256.  
  2257.  
  2258. tpwalking = true
  2259.  
  2260. local chr = game.Players.LocalPlayer.Character
  2261.  
  2262. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  2263.  
  2264. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  2265.  
  2266. if hum.MoveDirection.Magnitude > 0 then
  2267.  
  2268. chr:TranslateBy(hum.MoveDirection)
  2269.  
  2270. end
  2271.  
  2272. end
  2273.  
  2274.  
  2275.  
  2276. end)
  2277.  
  2278. end
  2279.  
  2280. end
  2281.  
  2282. end
  2283.  
  2284. end)
  2285.  
  2286.  
  2287.  
  2288. closebutton.MouseButton1Click:Connect(function()
  2289.  
  2290. main:Destroy()
  2291.  
  2292. end)
  2293.  
  2294.  
  2295.  
  2296. mini.MouseButton1Click:Connect(function()
  2297.  
  2298. up.Visible = false
  2299.  
  2300. down.Visible = false
  2301.  
  2302. onof.Visible = false
  2303.  
  2304. plus.Visible = false
  2305.  
  2306. speed.Visible = false
  2307.  
  2308. mine.Visible = false
  2309.  
  2310. mini.Visible = false
  2311.  
  2312. mini2.Visible = true
  2313.  
  2314. main.Frame.BackgroundTransparency = 1
  2315.  
  2316. closebutton.Position = UDim2.new(0, 0, -1, 57)
  2317.  
  2318. end)
  2319.  
  2320.  
  2321.  
  2322. mini2.MouseButton1Click:Connect(function()
  2323.  
  2324. up.Visible = true
  2325.  
  2326. down.Visible = true
  2327.  
  2328. onof.Visible = true
  2329.  
  2330. plus.Visible = true
  2331.  
  2332. speed.Visible = true
  2333.  
  2334. mine.Visible = true
  2335.  
  2336. mini.Visible = true
  2337.  
  2338. mini2.Visible = false
  2339.  
  2340. main.Frame.BackgroundTransparency = 0
  2341.  
  2342. closebutton.Position = UDim2.new(0, 0, -1, 27)
  2343.  
  2344. end)
  2345. end,
  2346. })
  2347.  
  2348.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement