Advertisement
K1ngBlitzy

fe hat orbit

Dec 31st, 2020
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.66 KB | None | 0 0
  1. spawn(function()
  2. while true do
  3. settings().Physics.AllowSleep = false
  4. game:GetService("Players").LocalPlayer.ReplicationFocus = workspace
  5. sethiddenproperty(game.Players.LocalPlayer,"SimulationRadius",math.huge*math.huge)
  6. game.Players.LocalPlayer.MaximumSimulationRadius = math.huge*math.huge
  7. game:GetService("RunService").Heartbeat:wait()
  8. end
  9. end)
  10. print"netbypass running"
  11.  
  12. local plr = game.Players.LocalPlayer;
  13. local chr = plr.Character;
  14. local hum = chr.Humanoid;
  15. local mov = {};
  16. local mov2 = {};
  17.  
  18. --[[Network]]
  19. spawn(function()
  20. while true do
  21. game:GetService("RunService").Heartbeat:Wait()
  22. game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.huge;
  23. setsimulationradius(math.huge);
  24. end
  25. end)
  26.  
  27. function ftp(str)
  28. local pt = {};
  29. if str ~= 'me' and str ~= 'random' then
  30. for i, v in pairs(game.Players:GetPlayers()) do
  31. if v.Name:lower():find(str:lower()) then
  32. table.insert(pt, v);
  33. end
  34. end
  35. elseif str == 'me' then
  36. table.insert(pt, plr);
  37. elseif str == 'random' then
  38. table.insert(pt, game.Players:GetPlayers()[math.random(1, #game.Players:GetPlayers())]);
  39. end
  40. return pt;
  41. end
  42.  
  43. for _, v in pairs(hum:GetAccessories()) do
  44. local b = v.Handle;
  45. b.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0);
  46. b.CanCollide = false;
  47. b:BreakJoints();
  48. for _, k in pairs(v:GetChildren()) do
  49. if not k:IsA'SpecialMesh' and not k:IsA'Part' then
  50. k:Destroy();
  51. end
  52. end
  53. local still = Instance.new('BodyAngularVelocity', b);
  54. still.MaxTorque = Vector3.new(math.huge, math.huge, math.huge);
  55. still.AngularVelocity = Vector3.new(0, 0, 0);
  56. local align = Instance.new('AlignPosition', b);
  57. align.MaxForce = 1000000;
  58. align.MaxVelocity = math.huge;
  59. align.RigidityEnabled = false;
  60. align.ApplyAtCenterOfMass = true;
  61. align.Responsiveness = 200;
  62. local a0 = Instance.new('Attachment', b);
  63. local a1 = Instance.new('Attachment', chr.Head);
  64. align.Attachment0 = a0;
  65. align.Attachment1 = a1;
  66. table.insert(mov, a1);
  67. table.insert(mov2, still);
  68. end
  69.  
  70. local par = {};
  71. for _, v in pairs(mov) do
  72. local parr = Instance.new('Part', workspace);
  73. parr.Anchored = true;
  74. parr.Size = Vector3.new(1, 1, 1);
  75. parr.Transparency = 1;
  76. parr.CanCollide = false;
  77. table.insert(par, parr);
  78. end
  79.  
  80. local rotx = 0;
  81. local rotz = math.pi / 2;
  82. local height = 0;
  83. local heighti = 1;
  84. local offset = 10;
  85. local speed = 2.5;
  86. local mode = 4;
  87. local angular = Vector3.new(0, 0, 0);
  88. local l = 1;
  89. game['Run Service'].RenderStepped:Connect(function()
  90. rotx = rotx + speed / 100;
  91. rotz = rotz + speed / 100;
  92. l = (l >= 360 and 1 or l + speed);
  93.  
  94. for i, v in pairs(par) do
  95. v.CFrame = CFrame.new(chr.HumanoidRootPart.Position) * CFrame.fromEulerAnglesXYZ(0, math.rad(l + (360 / #par) * i + speed), 0) * CFrame.new(offset, 0, 0);
  96. end
  97.  
  98. if heighti == 1 then
  99. height = height + speed / 100;
  100. elseif heighti == 2 then
  101. height = height - speed / 100;
  102. end
  103. if height > 2 then
  104. heighti = 2;
  105. end
  106. if height < -1 then
  107. heighti = 1;
  108. end
  109.  
  110. if mode == 1 then
  111. for _, v in pairs(mov) do
  112. v.Position = Vector3.new(math.sin(rotx) * offset, 0, math.sin(rotz) * offset);
  113. end
  114. elseif mode == 2 then
  115. for _, v in pairs(mov) do
  116. v.Position = Vector3.new(offset, height, offset);
  117. end
  118. elseif mode == 3 then
  119. for _, v in pairs(mov) do
  120. v.Position = Vector3.new(math.sin(rotx) * offset, height, math.sin(rotz) * offset);
  121. end
  122. elseif mode == 4 then
  123. for i, v in pairs(mov) do
  124. v.Position = Vector3.new(chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).X, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Y, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Z);
  125. end
  126. elseif mode == 5 then
  127. for i, v in pairs(mov) do
  128. v.Position = Vector3.new((math.sin(rotx)) * offset, height, (math.cos(rotz) - i) * offset);
  129. end
  130. elseif mode == 6 then
  131. for i, v in pairs(mov) do
  132. v.Position = Vector3.new((math.sin(rotx)) * offset, height, (math.tan(rotz) - i) * offset);
  133. end
  134. elseif mode == 7 then
  135. for i, v in pairs(mov) do
  136. v.Position = Vector3.new(math.cos(rotx * i) * offset, 0, math.cos(rotz * i) * offset);
  137. end
  138. elseif mode == 8 then
  139. for i, v in pairs(mov) do
  140. v.Position = Vector3.new(math.sin(rotx) * i * offset, 0, math.sin(rotz) * i * offset);
  141. end
  142. elseif mode == 9 then
  143. pcall(function()
  144. local so = nil;
  145. for k, b in pairs(chr:GetChildren()) do
  146. if b:IsA'Tool' then
  147. for h, j in pairs(b:GetDescendants()) do
  148. if j:IsA'Sound' then
  149. so = j;
  150. end
  151. end
  152. end
  153. end
  154. if so ~= nil then
  155. offset = so.PlaybackLoudness / 35;
  156. speed = so.PlaybackLoudness / 500;
  157. angular = Vector3.new(0, so.PlaybackLoudness / 75, 0);
  158. end
  159. end)
  160. for i, v in pairs(mov) do
  161. v.Position = Vector3.new(chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).X, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Y, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Z);
  162. end
  163. elseif mode == 10 then
  164. offset = height * 15;
  165. for i, v in pairs(mov) do
  166. v.Position = Vector3.new(chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).X, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Y, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Z);
  167. end
  168. elseif mode == 11 then
  169. for i, v in pairs(mov) do
  170. v.Position = Vector3.new(chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(plr:GetMouse().Hit.p)).X, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(plr:GetMouse().Hit.p)).Y, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(plr:GetMouse().Hit.p)).Z) + Vector3.new(chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).X, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Y, chr.HumanoidRootPart.CFrame:ToObjectSpace(CFrame.new(par[i].Position)).Z);
  171. end
  172. end
  173. for _, v in pairs(mov2) do
  174. v.AngularVelocity = angular;
  175. end
  176. end)
  177. game.Players.LocalPlayer.Chatted:Connect(function(c)
  178. if c:split(' ')[1] == '.orbit' then
  179. for _, v in pairs(mov) do
  180. chr = ftp(c:split(' ')[2])[1].Character;
  181. v.Parent = ftp(c:split(' ')[2])[1].Character.HumanoidRootPart;
  182. end
  183. end
  184. if c:split(' ')[1] == '.speed' then
  185. speed = tonumber(c:split(' ')[2]);
  186. end
  187. if c:split(' ')[1] == '.mode' then
  188. mode = tonumber(c:split(' ')[2]);
  189. end
  190. if c:split(' ')[1] == '.offset' then
  191. offset = tonumber(c:split(' ')[2]);
  192. end
  193. if c:split(' ')[1] == '.angular' then
  194. angular = Vector3.new(tonumber(c:split(' ')[2]), tonumber(c:split(' ')[3]), tonumber(c:split(' ')[4]));
  195. end
  196. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement