Advertisement
gogo92111

PF Script

Jun 22nd, 2020
220,956
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.34 KB | None | 0 0
  1. local ESP = 0 --ESP
  2. local FlyOrWhat = 0 --Fly
  3. local AutoRes = 0 --Auto Respawn
  4. _G.On = 1 --Tracers
  5. local aim = 0;
  6. local wall = 0;
  7. --create variables
  8. plrs = game:service'Players'
  9. lp = plrs.LocalPlayer
  10. char = lp.Character
  11. _G.Fall = 0 --No Fall Damage
  12. _G.Spam = 0 --No Spam Kick
  13. --Initialize Functions
  14. local GetAllPlayerParts
  15. local WeaponTable
  16. local breakwin
  17. local deployfunc
  18.  
  19. function GetFunc()
  20. for i, v in pairs(getgc(true)) do
  21. if type(v) == "function" and debug.getinfo(v).name == "getallparts" then
  22. local a = v()
  23. if type(a) == "table" then
  24. GetAllPlayerParts = v --yes using game function for ESP cuz why not?
  25. end
  26. end
  27. end
  28. end
  29. function GetDeployFunc() --Get the func used for spawning
  30. for i, v in pairs(getgc(true)) do
  31. if type(v) == "table" and rawget(v, "deploy") then
  32. deployfunc = v
  33. end
  34. end
  35. end
  36. spawn(GetDeployFunc)
  37. function HookAmmo() --Useless for now
  38. for i, v in pairs(getgc(true)) do
  39. if type(v) == "function" and debug.getinfo(v).name == "updateammo" then
  40.  
  41. local OldFunction
  42. local Hook = function(self, ...)
  43. local Args = {...}
  44. if Args[1] == 0 and Args[2] > 0 then
  45. print("No Ammo")
  46. end
  47. return OldFunction(self, ...)
  48. end
  49. OldFunction = hookfunction(v, Hook)
  50.  
  51. end
  52. end
  53. end
  54. spawn(HookAmmo)
  55.  
  56. --hook
  57. local OldFunction
  58. function HookItNow()
  59. local func
  60. for i, v in pairs(getgc(true)) do
  61. if type(v) == "function" and debug.getinfo(v).name == "send" then
  62. func = v
  63. end
  64. end
  65. local OldFunction
  66. local Hook = function(self, ...)
  67. local Args = {...}
  68. local name = Args[1]
  69. for a,b in pairs(self) do
  70. self.playerping = self.serverping
  71. end
  72.  
  73. if name == 'newpos' then
  74. --return yes those kids are smart not letting me make kill all
  75. end
  76. if name == 'closeconnection' and _G.Spam == 1 then --anti kick
  77. return
  78. end
  79. if name == 'changehealthx' then
  80. if #Args > 4 and Args[3] == 'Falling' and _G.Fall == 1 then --anti fall damage
  81. return
  82. end
  83. end
  84. return OldFunction(self, ...)
  85. end
  86. OldFunction = hookfunction(func, Hook)
  87. end
  88. spawn(HookItNow)
  89.  
  90. --Modify some messages cuz why not?
  91. for i, v in pairs(getgc(true)) do
  92. if type(v) == "table" and rawget(v, "squad") then
  93. v.kill = {"You killed your enemy with the help of gogo1000"}
  94. v.suppression = {"You suppressed the enemy with the help of gogo1000"}
  95. end
  96. end
  97.  
  98.  
  99. --Draw ESP function
  100. local function DrawGUI(R,G,B,pos,name)
  101. if not pos:FindFirstChild(name) then
  102. local box = Instance.new("BoxHandleAdornment", pos)
  103. box.AlwaysOnTop = true
  104. box.Adornee = pos
  105. box.Size = pos.Size
  106. box.Color3 = Color3.fromRGB(R,G,B)
  107. box.Name = name
  108. box.ZIndex = 5
  109. end
  110. end
  111.  
  112. spawn(GetFunc)
  113.  
  114.  
  115. --get function used for breaking windows
  116. function gettable()
  117. for i, v in pairs(getgc(true)) do
  118. if type(v) == "table" and rawget(v, "effects") then
  119. breakwin = v.effects.module.breakwindow
  120. end
  121. end
  122. end
  123. spawn(gettable)
  124.  
  125. --Load Library
  126. local library = loadstring(game:HttpGet("https://pastebin.com/raw/SMnchCrg", true))()
  127. local main = library:CreateWindow('Main')
  128. local guns = library:CreateWindow('Gun Mods')
  129. local other = library:CreateWindow("Others")
  130. local settings = library:CreateWindow("Settings")
  131.  
  132. --Create Tabs
  133.  
  134. local t = main:Toggle('Aimbot', {flag = "toggleaim"},
  135. function()
  136. if main.flags.toggleaim == true then
  137. aim = 1
  138.  
  139. else
  140. aim = 0
  141. end
  142. end)
  143. local t = settings:Toggle('Aimbot Wall Check', {flag = "togglewall"},
  144. function()
  145. if settings.flags.togglewall == true then
  146. wall = 1
  147.  
  148. else
  149. wall = 0
  150. end
  151. end)
  152.  
  153.  
  154. local t = main:Toggle('ESP', {flag = "toggle1"},
  155. function()
  156. if main.flags.toggle1 == true then
  157. ESP = 1
  158. spawn(StartESP)
  159. else
  160. ESP = 0
  161. end
  162. end)
  163.  
  164. local t = main:Toggle('Tracers', {flag = "toggle2"},
  165. function()
  166. if main.flags.toggle2 == true then
  167. _G.On = 1
  168. spawn(tracers)
  169. else
  170. _G.On = 0
  171. end
  172. end)
  173.  
  174. local t = other:Toggle('Full Bright', {flag = "toggle3"},
  175. function()
  176. if other.flags.toggle3 == true then
  177.  
  178. spawn(FullBright)
  179. else
  180.  
  181. spawn(FullBright)
  182. end
  183. end)
  184.  
  185.  
  186. local t = main:Toggle('Fly (Double Jump)', {flag = "toggle4"},
  187. function()
  188. if main.flags.toggle4 == true then
  189. FlyOrWhat = 1
  190. else
  191. FlyOrWhat = 0
  192. end
  193. end)
  194.  
  195.  
  196. local t = main:Toggle('No Fall Damage', {flag = "toggle5"},
  197. function()
  198. if main.flags.toggle5 == true then
  199. _G.Fall = 1
  200.  
  201.  
  202. else
  203. _G.Fall = 0
  204. end
  205. end)
  206.  
  207. local t = main:Toggle('Auto Respawn', {flag = "toggle6"},
  208. function()
  209. if main.flags.toggle6 == true then
  210. AutoRes = 1
  211. else
  212. AutoRes = 0
  213. end
  214. end)
  215.  
  216. local t = main:Toggle('No Kick On Spam', {flag = "toggle7"},
  217. function()
  218. if main.flags.toggle7 == true then
  219. _G.Spam = 1
  220.  
  221. else
  222. _G.Spam = 0
  223. end
  224. end)
  225.  
  226. --Modifying tables directly and not hooking because it will take too much time updating incase PF change something
  227. local b = guns:Button("No Recoil", function()
  228. for i, data in pairs(getgc(true)) do
  229. if type(data) == "table" and rawget(data, "camkickmax") then
  230. local V = Vector3.new()
  231. data.camkickmin = V
  232. data.camkickmax = V
  233. data.aimcamkickmin = V
  234. data.aimcamkickmax = V
  235. data.aimtranskickmin = V
  236. data.aimtranskickmax = V
  237. data.transkickmin = V
  238. data.transkickmax = V
  239. data.rotkickmin = V
  240. data.rotkickmax = V
  241. data.aimrotkickmin = V
  242. data.aimrotkickmax = V
  243. end
  244. end
  245. end)
  246.  
  247. local b = guns:Button("Full Auto", function()
  248. local V = Vector3.new()
  249. for i, data in pairs(getgc(true)) do
  250. if type(data) == "table" and rawget(data, "camkickmax") then
  251. for a,b in pairs(data.firemodes) do
  252. data.firemodes = {true, 3, 1}
  253.  
  254. end
  255. end
  256. end
  257. end)
  258.  
  259. local f = guns:Button("No Sway", function()
  260. local V = Vector3.new()
  261. for i, data in pairs(getgc(true)) do
  262. if type(data) == "table" and rawget(data, "camkickmax") then
  263. data.swayamp = 0
  264. data.swayspeed = 0
  265. data.steadyspeed = 0
  266. data.breathspeed = 0
  267. end
  268. end
  269. end)
  270.  
  271. --local f = guns:Button("Speed", function()
  272. -- local V = Vector3.new()
  273. -- for i, data in pairs(getgc(true)) do
  274.  
  275. -- if type(data) == "table" and rawget(data, "camkickmax") then
  276.  
  277. -- data.walkspeed = 30
  278.  
  279. -- end
  280. -- end
  281. -- end)
  282.  
  283. local f = guns:Button("No Flash", function()
  284. local V = Vector3.new()
  285. for i, data in pairs(getgc(true)) do
  286. if type(data) == "table" and rawget(data, "camkickmax") then
  287. if data.hideflash ~= nil then
  288. data.hideflash = true
  289. end
  290. end
  291. end
  292. end)
  293.  
  294. local f = guns:Button("Fast Bullets", function()
  295. local V = Vector3.new()
  296. for i, data in pairs(getgc(true)) do
  297. if type(data) == "table" and rawget(data, "camkickmax") then
  298. data.bulletspeed = 999;
  299. end
  300. end
  301. end)
  302.  
  303. local f = guns:Button("No Spread", function()
  304. local V = Vector3.new()
  305. for i, data in pairs(getgc(true)) do
  306. if type(data) == "table" and rawget(data, "camkickmax") then
  307. data.hipfirespreadrecover = 100
  308. data.hipfirespread = 0
  309. data.hipfirestability = 0
  310. end
  311. end
  312. end)
  313.  
  314. local f = guns:Button("Inf Penetration", function()
  315. local V = Vector3.new()
  316. for i, data in pairs(getgc(true)) do
  317. if type(data) == "table" and rawget(data, "camkickmax") then
  318. data.penetrationdepth = 3000; --yeah its client side...
  319. end
  320. end
  321. end)
  322.  
  323. --loop all windows in the map and call the function
  324. local b = other:Button("Break All Windows", function()
  325. for i,v in pairs(workspace.Map:GetDescendants()) do
  326. if v:IsA("BasePart") and tostring(v) == "Window" then
  327.  
  328. breakwin(v, v, nil, true, true,nil,nil,nil)
  329.  
  330. end
  331. end
  332.  
  333. end)
  334.  
  335.  
  336. --Cheats
  337.  
  338. function aimbot()--This function IS NOT made by me. Tho i modified it to work on PF
  339. PLAYER = game.Players.LocalPlayer
  340. MOUSE = PLAYER:GetMouse()
  341. CC = game.Workspace.CurrentCamera
  342.  
  343. ENABLED = false
  344. ESP_ENABLED = false
  345.  
  346. _G.FREE_FOR_ALL = true
  347.  
  348. _G.BIND = 50
  349. _G.ESP_BIND = 52
  350. _G.CHANGE_AIM = 'q'
  351.  
  352. _G.AIM_AT = 'Head'
  353.  
  354. wait(1)
  355. --This function IS NOT made by me. Tho i modified it to work on PF
  356. function GetNearestPlayerToMouse()
  357. local PLAYERS = {}
  358. local PLAYER_HOLD = {}
  359. local DISTANCES = {}
  360. for i, v in pairs(GetAllPlayerParts()) do
  361. if v ~= PLAYER then
  362. table.insert(PLAYERS, v)
  363. end
  364. end
  365. for i, v in pairs(PLAYERS) do
  366.  
  367.  
  368. local AIM = v:FindFirstChild(_G.AIM_AT)
  369. if AIM ~= nil then
  370. local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  371. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  372. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  373. local DIFF = math.floor((POS - AIM.Position).magnitude)
  374. PLAYER_HOLD[v.Name .. i] = {}
  375. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  376. PLAYER_HOLD[v.Name .. i].plr = v
  377. PLAYER_HOLD[v.Name .. i].diff = DIFF
  378. table.insert(DISTANCES, DIFF)
  379. end
  380. end
  381.  
  382.  
  383. if unpack(DISTANCES) == nil then
  384. return false
  385. end
  386.  
  387. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  388. if L_DISTANCE > 20 then
  389. return false
  390. end
  391.  
  392. for i, v in pairs(PLAYER_HOLD) do
  393. if v.diff == L_DISTANCE then
  394. return v.plr
  395. end
  396. end
  397. return false
  398. end
  399. local camera = workspace.CurrentCamera
  400. function WorldToScreen(Position)
  401. return camera:WorldToScreenPoint(Position)
  402. end
  403.  
  404.  
  405. MOUSE.Button2Up:connect(function(KEY)
  406.  
  407.  
  408. ENABLED = false
  409.  
  410. end)
  411.  
  412. MOUSE.Button2Down:connect(function(KEY)
  413.  
  414. ENABLED = true
  415.  
  416. end)
  417. end
  418. spawn(aimbot)
  419. function StartESP()
  420. while wait(1) do
  421. --yeah this is some cringe stuff right here but im too lazy to remake
  422. if ESP == 0 then
  423. for i,v in pairs(GetAllPlayerParts()) do
  424. if tostring(v) == "Head" or tostring(v) == "Torso" or tostring(v) == "HumanoidRootPart" or tostring(v) == "Left Leg" or tostring(v) == "Right Leg" or tostring(v) == "Right Arm" or tostring(v) == "Left Arm" then
  425. if v:FindFirstChild("Friendly") then
  426. v.Friendly:Destroy()
  427. end
  428. if v:FindFirstChild("Enemy") then
  429. v.Enemy:Destroy()
  430. end
  431. end
  432. end
  433. break
  434. end
  435. --DrawGUI
  436. for a,b in pairs(GetAllPlayerParts()) do
  437. if tostring(b) == "Head" or tostring(b) == "Torso" or tostring(b) == "HumanoidRootPart" or tostring(b) == "Left Leg" or tostring(b) == "Right Leg" or tostring(b) == "Right Arm" or tostring(b) == "Left Arm" then
  438. if tostring(game.Players.LocalPlayer.Team) ~= tostring(b.Parent.Parent) then
  439. DrawGUI(255,0,0,b,"Friendly")
  440. else
  441. DrawGUI(13,255,48,b,"Enemy")
  442. end
  443. end
  444. end
  445. end
  446. end
  447. function tracers()
  448.  
  449. while wait(1) do
  450.  
  451. if _G.On == 0 then
  452.  
  453. for i,v in pairs(GetAllPlayerParts()) do
  454. if tostring(v) == "Head" or tostring(v) == "Torso" or tostring(v) == "HumanoidRootPart" or tostring(v) == "Left Leg" or tostring(v) == "Right Leg" or tostring(v) == "Right Arm" or tostring(v) == "Left Arm" then
  455. if v:FindFirstChild("Attachment") then
  456. v.Attachment:Destroy()
  457. end
  458.  
  459. end
  460. end
  461. break
  462. end
  463.  
  464. for i,v in pairs(GetAllPlayerParts()) do
  465.  
  466. if tostring(v) == "Head" or tostring(v) == "Torso" or tostring(v) == "HumanoidRootPart" or tostring(v) == "Left Leg" or tostring(v) == "Right Leg" or tostring(v) == "Right Arm" or tostring(v) == "Left Arm" then
  467. if v:FindFirstChild("Attachment") then
  468. v.Attachment:Destroy()
  469. end
  470. end
  471. if tostring(v) == "HumanoidRootPart" and _G.On == 1 then
  472. local success, message = pcall(function()
  473.  
  474. beam = Instance.new('Beam', plrs.LocalPlayer.Character.HumanoidRootPart)
  475.  
  476. beam.Name = 'Beam'
  477. beam.FaceCamera = true
  478. beam.Width0 = .15
  479. beam.Width1 = .15
  480. if tostring(game.Players.LocalPlayer.Team) ~= tostring(v.Parent.Parent) then
  481. beam.Color = ColorSequence.new(Color3.fromRGB(255,0,0),Color3.fromRGB(255,0,0))
  482. else
  483. beam.Color = ColorSequence.new(Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,0))
  484. end
  485. one = Instance.new('Attachment', plrs.LocalPlayer.Character.HumanoidRootPart)
  486. two = Instance.new('Attachment', v)
  487. beam.Attachment0 = one
  488. beam.Attachment1 = two
  489. end)
  490. end
  491.  
  492. end
  493.  
  494. end
  495. end
  496.  
  497.  
  498. --Fly (I take no credits for this fly i might make my own if i decide to update this)
  499.  
  500. local binds = {}
  501. local binds_first = {}
  502. local forcebinds = {}
  503. local uis = game:GetService'UserInputService';
  504.  
  505. function bind(key, func)
  506. binds[key] = func;
  507. end
  508. function bind_first(key, func)
  509. binds_first[key] = func;
  510. end
  511. function forcebind(key, func)
  512. forcebinds[key] = func;
  513. end
  514. function unbind(key)
  515. binds[key] = nil;
  516. binds_first[key] = nil;
  517. end
  518.  
  519. uis.InputBegan:Connect(function(key)
  520. key = key.KeyCode.Name:lower();
  521. local inChat = uis:GetFocusedTextBox() and true or false;
  522. if not inChat then
  523. if binds_first[key] and typeof(binds_first[key]) == 'function' then
  524. binds_first[key]();
  525. end
  526. end
  527. end)
  528.  
  529. uis.InputEnded:Connect(function(input)
  530. key = input.KeyCode.Name:lower();
  531. local inChat = uis:GetFocusedTextBox();
  532. if not inChat then
  533. if binds[key] and typeof(binds[key]) == 'function' and input.UserInputType.Name == 'Keyboard' then
  534. binds[key]();
  535. end
  536. if input.UserInputType.Name == 'MouseButton1' and binds.mouse1 ~= nil then
  537. binds.mouse1();
  538. end
  539. if input.UserInputType.Name == 'MouseButton2' and binds.mouse2 ~= nil then
  540. binds.mouse2();
  541. end
  542. else
  543. if forcebinds[key] and typeof(binds[key]) == 'function' then
  544. forcebinds[key]();
  545. end
  546. end
  547. end)
  548.  
  549. getgenv().bind = bind;
  550. getgenv().bind_first = bind_first;
  551. getgenv().forcebind = forcebind;
  552. getgenv().unbind = unbind;
  553. local input = {}
  554. local uis = game:service'UserInputService'
  555.  
  556. input.mouse = game:GetService'Players'.LocalPlayer:GetMouse();
  557.  
  558. input.down = setmetatable({}, {
  559. __index = function(i, v)
  560. local isDown = false;
  561. v = v:lower();
  562. for _, key in pairs(Enum.UserInputType:GetEnumItems()) do
  563. if (key.Name:lower() == v and uis:IsMouseButtonPressed(key.Name)) then
  564. isDown = true;
  565. end
  566. end
  567. for _, key in pairs(Enum.KeyCode:GetEnumItems()) do
  568. if (key.Name:lower() == v and uis:IsKeyDown(key.Name)) then
  569. isDown = true;
  570. end
  571. end
  572. return isDown
  573. end
  574. })
  575.  
  576. getgenv().input = input;
  577.  
  578. local player = game:GetService'Players'.LocalPlayer;
  579. local mouse = player:GetMouse();
  580. local camera = workspace.CurrentCamera;
  581. local runservice = game:GetService'RunService';
  582. local uis = game:GetService'UserInputService';
  583.  
  584. local fly = true;
  585. local lsf = 0;
  586. local flySpeed = 50;
  587. local maxSpeed = 260;
  588. local disp;
  589.  
  590. local gayGames = {
  591. 3016661674;
  592. 3541987450;
  593. };
  594.  
  595. for i, v in ipairs(gayGames) do
  596. gayGames[v] = true;
  597. gayGames[i] = false;
  598. end
  599.  
  600. local gay = gayGames[game.PlaceId];
  601.  
  602. shared.sfls = script;
  603.  
  604. if Drawing then
  605. disp = shared.fdisp or Drawing.new'Text';
  606. disp.Text = 'FlySpeed: ' .. flySpeed;
  607. disp.Size = 18;
  608. disp.Center = false;
  609. disp.Outline = true;
  610. disp.Visible = true;
  611. disp.Color = Color3.new(1, 1, 1);
  612. disp.Position = Vector2.new(150, 7);
  613.  
  614. shared.fdisp = disp;
  615. end
  616.  
  617. function IsInZone(Object1, Object2, YCheck) -- broken 2 lazy 2 fix
  618. if (typeof(Object1) ~= 'Instance' and typeof(Object1) ~= 'table') or (typeof(Object2) ~= 'Instance' and typeof(Object2) ~= 'table') then return 'NIGGER'; end
  619. if YCheck ~= nil and typeof(YCheck) ~= 'boolean' then return end
  620.  
  621. YCheck = (YCheck ~= nil and YCheck or false);
  622.  
  623. local RYCheck = true;
  624.  
  625. local Object = Object1;
  626.  
  627. local Positive = (Object2.CFrame * CFrame.new(Object2.Size.X / 2, Object2.Size.Y / 2, Object2.Size.Z / 2));
  628. local Negative = (Object2.CFrame * CFrame.new(-Object2.Size.X / 2, -Object2.Size.Y / 2, -Object2.Size.Z / 2));
  629.  
  630. if YCheck then
  631. RYCheck = (YCheck == true and
  632. (Object.Position.Y > Positive.Y) and
  633. (Object.Position.Y < Negative.Y));
  634. end
  635.  
  636. -- print(1, (Object.Position.X < Positive.X), Object.Position.X, Positive.X)
  637. -- print(2, (Object.Position.X > Negative.X), Object.Position.X, Negative.X)
  638. -- print(3, (Object.Position.Z > Positive.Z), Object.Position.Z, Positive.Z)
  639. -- print(4, (Object.Position.Z < Negative.Z), Object.Position.Z, Negative.Z)
  640. -- print(5, RYCheck);
  641.  
  642. return (Object.Position.X < Positive.X) and
  643. (Object.Position.X > Negative.X) and
  644. (Object.Position.Z > Positive.Z) and
  645. (Object.Position.Z < Negative.Z) and
  646. (RYCheck);
  647. end
  648.  
  649. function GetIndex(Table, Value)
  650. for i, v in pairs(Table) do
  651. if v == Value then
  652. return i;
  653. end
  654. end
  655.  
  656. return -1;
  657. end
  658.  
  659. local PartIgnore = {};
  660.  
  661. function DisableClip(Part)
  662. if Part:IsA'BasePart' and Part.CanCollide then
  663. local Start = tick();
  664. local OldTransparency = Part.Transparency;
  665.  
  666. table.insert(PartIgnore, Part);
  667.  
  668. while tick() - Start < 300 and player.Character and player.Character:FindFirstChild'HumanoidRootPart' and not input.down.f4 do
  669.  
  670. if not input.down.space then
  671. break;
  672. end
  673.  
  674. Part.CanCollide = false;
  675.  
  676. Part.Transparency = 0.75;
  677.  
  678. wait(1 / 8);
  679. end
  680.  
  681. table.remove(PartIgnore, GetIndex(PartIgnore, Part));
  682.  
  683. Part.Transparency = OldTransparency;
  684. Part.CanCollide = true;
  685. end
  686. end
  687.  
  688. local lastDC = 0;
  689.  
  690.  
  691. uis.InputChanged:Connect(function(Input)
  692. if script ~= shared.sfls then return; end
  693.  
  694. if Input.UserInputType == Enum.UserInputType.MouseWheel then
  695. if input.down.leftcontrol then
  696. local inc = Input.Position.Z > 0 and 25 or -25;
  697.  
  698. flySpeed = math.clamp(flySpeed + (inc * (input.down.leftshift and 2 or 1)), 0, maxSpeed);
  699. lastDC = tick();
  700. end
  701. end
  702.  
  703.  
  704. end);
  705.  
  706. local lastSpace = 0;
  707.  
  708. bind_first('space', function()
  709. if fly and FlyOrWhat == 1 and tick() - lastSpace < 0.3 and player.Character and player.Character:FindFirstChild'HumanoidRootPart' and player.Character:FindFirstChildOfClass'Humanoid' then
  710. local root = player.Character.HumanoidRootPart;
  711. local hum = player.Character:FindFirstChildOfClass'Humanoid';
  712.  
  713. while input.down.space and fly do
  714. if not gay then hum.PlatformStand = true; end
  715. local start = mouse.Hit.p;
  716. local dir = (start - camera.CFrame.p);
  717.  
  718. root.Velocity = dir.unit * (math.random((flySpeed - 1) * 1000, (flySpeed + 2.5) * 1000) / 1000); -- adds random speed so the velocity doesn't always measure to a certain amount (prevents detection)
  719.  
  720. local ray = Ray.new(root.Position, dir.unit * 50);
  721. local hit, pos = workspace:FindPartOnRayWithIgnoreList(ray, {player.Character, camera, unpack(PartIgnore)});
  722.  
  723.  
  724.  
  725. runservice.RenderStepped:wait();
  726. end
  727.  
  728. if not gay then
  729. hum.PlatformStand = false;
  730. root.Velocity = Vector3.new();
  731. hum:SetStateEnabled(0, false);
  732. end
  733. end
  734.  
  735. lastSpace = tick();
  736. end)
  737.  
  738. --auto respawn
  739. local function onChanged(property)
  740. if tostring(property) == "Visible" and AutoRes == 1 then
  741. local repeater = 0
  742. wait(0.5)
  743. repeat
  744. repeater = repeater + 1
  745. deployfunc.deploy()
  746. print(deployfunc.isdeployed())
  747. until deployfunc.isdeployed() == true or repeater == 2
  748. end
  749. end
  750. game.Players.LocalPlayer.PlayerGui.MainGui.GameGui.Changed:Connect(onChanged)
  751.  
  752. function FullBright()
  753. if not _G.FullBrightExecuted then
  754.  
  755. _G.FullBrightEnabled = false
  756.  
  757. _G.NormalLightingSettings = {
  758. Brightness = game:GetService("Lighting").Brightness,
  759. ClockTime = game:GetService("Lighting").ClockTime,
  760. FogEnd = game:GetService("Lighting").FogEnd,
  761. GlobalShadows = game:GetService("Lighting").GlobalShadows,
  762. Ambient = game:GetService("Lighting").Ambient
  763. }
  764.  
  765. game:GetService("Lighting"):GetPropertyChangedSignal("Brightness"):Connect(function()
  766. if game:GetService("Lighting").Brightness ~= 1 and game:GetService("Lighting").Brightness ~= _G.NormalLightingSettings.Brightness then
  767. _G.NormalLightingSettings.Brightness = game:GetService("Lighting").Brightness
  768. if not _G.FullBrightEnabled then
  769. repeat
  770. wait()
  771. until _G.FullBrightEnabled
  772. end
  773. game:GetService("Lighting").Brightness = 1
  774. end
  775. end)
  776.  
  777. game:GetService("Lighting"):GetPropertyChangedSignal("ClockTime"):Connect(function()
  778. if game:GetService("Lighting").ClockTime ~= 12 and game:GetService("Lighting").ClockTime ~= _G.NormalLightingSettings.ClockTime then
  779. _G.NormalLightingSettings.ClockTime = game:GetService("Lighting").ClockTime
  780. if not _G.FullBrightEnabled then
  781. repeat
  782. wait()
  783. until _G.FullBrightEnabled
  784. end
  785. game:GetService("Lighting").ClockTime = 12
  786. end
  787. end)
  788.  
  789. game:GetService("Lighting"):GetPropertyChangedSignal("FogEnd"):Connect(function()
  790. if game:GetService("Lighting").FogEnd ~= 786543 and game:GetService("Lighting").FogEnd ~= _G.NormalLightingSettings.FogEnd then
  791. _G.NormalLightingSettings.FogEnd = game:GetService("Lighting").FogEnd
  792. if not _G.FullBrightEnabled then
  793. repeat
  794. wait()
  795. until _G.FullBrightEnabled
  796. end
  797. game:GetService("Lighting").FogEnd = 786543
  798. end
  799. end)
  800.  
  801. game:GetService("Lighting"):GetPropertyChangedSignal("GlobalShadows"):Connect(function()
  802. if game:GetService("Lighting").GlobalShadows ~= false and game:GetService("Lighting").GlobalShadows ~= _G.NormalLightingSettings.GlobalShadows then
  803. _G.NormalLightingSettings.GlobalShadows = game:GetService("Lighting").GlobalShadows
  804. if not _G.FullBrightEnabled then
  805. repeat
  806. wait()
  807. until _G.FullBrightEnabled
  808. end
  809. game:GetService("Lighting").GlobalShadows = false
  810. end
  811. end)
  812.  
  813. game:GetService("Lighting"):GetPropertyChangedSignal("Ambient"):Connect(function()
  814. if game:GetService("Lighting").Ambient ~= Color3.fromRGB(178, 178, 178) and game:GetService("Lighting").Ambient ~= _G.NormalLightingSettings.Ambient then
  815. _G.NormalLightingSettings.Ambient = game:GetService("Lighting").Ambient
  816. if not _G.FullBrightEnabled then
  817. repeat
  818. wait()
  819. until _G.FullBrightEnabled
  820. end
  821. game:GetService("Lighting").Ambient = Color3.fromRGB(178, 178, 178)
  822. end
  823. end)
  824.  
  825. game:GetService("Lighting").Brightness = 1
  826. game:GetService("Lighting").ClockTime = 12
  827. game:GetService("Lighting").FogEnd = 786543
  828. game:GetService("Lighting").GlobalShadows = false
  829. game:GetService("Lighting").Ambient = Color3.fromRGB(178, 178, 178)
  830.  
  831. local LatestValue = true
  832. spawn(function()
  833. repeat
  834. wait()
  835. until _G.FullBrightEnabled
  836. while wait() do
  837. if _G.FullBrightEnabled ~= LatestValue then
  838. if not _G.FullBrightEnabled then
  839. game:GetService("Lighting").Brightness = _G.NormalLightingSettings.Brightness
  840. game:GetService("Lighting").ClockTime = _G.NormalLightingSettings.ClockTime
  841. game:GetService("Lighting").FogEnd = _G.NormalLightingSettings.FogEnd
  842. game:GetService("Lighting").GlobalShadows = _G.NormalLightingSettings.GlobalShadows
  843. game:GetService("Lighting").Ambient = _G.NormalLightingSettings.Ambient
  844. else
  845. game:GetService("Lighting").Brightness = 1
  846. game:GetService("Lighting").ClockTime = 12
  847. game:GetService("Lighting").FogEnd = 786543
  848. game:GetService("Lighting").GlobalShadows = false
  849. game:GetService("Lighting").Ambient = Color3.fromRGB(178, 178, 178)
  850. end
  851. LatestValue = not LatestValue
  852. end
  853. end
  854. end)
  855. end
  856.  
  857. _G.FullBrightExecuted = true
  858. _G.FullBrightEnabled = not _G.FullBrightEnabled
  859. end
  860. local cam = game.Workspace.CurrentCamera
  861.  
  862. local function WallChecker(p, ...)
  863. return #cam:GetPartsObscuringTarget({p}, {cam, lp.Character, ...}) == 0
  864. end
  865. game:GetService('RunService').RenderStepped:connect(function()
  866. if ENABLED then
  867. local TARGET = GetNearestPlayerToMouse()
  868. local aimAt = WorldToScreen(TARGET.Head.Position)
  869. local mouseLocation = WorldToScreen(MOUSE.Hit.p)
  870. local incrementX, incrementY = (aimAt.X - mouseLocation.X) / 10, (aimAt.Y - mouseLocation.Y) / 10
  871.  
  872. if tostring(game.Players.LocalPlayer.Team) ~= tostring(TARGET.Parent) and aim == 1 then
  873. if WallChecker(TARGET.Head.Position, TARGET) and wall == 1 then
  874. mousemoverel(incrementX, incrementY)
  875. end
  876. if wall == 0 then
  877. mousemoverel(incrementX, incrementY)
  878. end
  879.  
  880. end
  881.  
  882. end
  883. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement