Advertisement
DarkSerpent

EES

Mar 11th, 2021
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. spawn(function()
  2. while true do game:GetService("RunService").Heartbeat:wait()
  3. for i,v in pairs(game.Players:GetPlayers()) do
  4. if v == game.Players.LocalPlayer == false then
  5. game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge
  6. game.Players.LocalPlayer.SimulationRadius = math.pow(math.huge,math.huge)*math.huge
  7. v.MaximumSimulationRadius = 0
  8. v.SimulationRadius = 0
  9. game:GetService("RunService").Stepped:wait()
  10. end
  11. end
  12. end
  13. end)
  14.  
  15. local Player = game:GetService("Players").LocalPlayer
  16. local Players = game:GetService("Players")
  17. local HatList = {}
  18. local i = 0
  19. for _,l in pairs(Player.Character:GetChildren()) do
  20. if l:IsA("Accessory") then if i>0 then l.Parent = workspace end i = i + 1 end;
  21. end
  22. wait(.1)
  23.  
  24.  
  25.  
  26. for _,v in pairs(workspace:GetDescendants()) do
  27. if v.Name == "Handle" and v:IsA("BasePart") and v.Parent:IsA("Accessory") and v:IsDescendantOf(Player.Character)==false and Players:GetPlayerFromCharacter(v.Parent.Parent)==nil then
  28. table.insert(HatList,v)
  29. end
  30. end
  31.  
  32. for _,hat in pairs(HatList) do
  33. hat.Parent = workspace
  34. hat.Position = Player.Character.HumanoidRootPart.Position + Player.Character.HumanoidRootPart.CFrame.lookVector * 5
  35. local BodyPos = Instance.new("BodyPosition",hat)
  36. local BodyAng = Instance.new("BodyAngularVelocity",hat)
  37. BodyAng.AngularVelocity = Vector3.new(0,9e12,0)
  38. BodyAng.P = 9e12
  39. BodyPos.MaxForce = Vector3.new(9e9,9e9,9e9)
  40. BodyPos.P = 9e8
  41. spawn(function()
  42. while wait() do
  43. if pcall(function()
  44. hat.CanCollide = false
  45. BodyPos.Position = Player.Character.HumanoidRootPart.Position + Vector3.new(math.random(-2,2),math.random(-2,2),math.random(-2,2))
  46. end) then
  47. else
  48. BodyPos:Destroy()
  49. hat.CanCollide = true
  50. end
  51. end
  52. end)
  53.  
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement