Advertisement
SpacecowboyHX

fling thing idk Dojjj0

Mar 15th, 2021
1,889
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.16 KB | None | 0 0
  1. --[[wait(5)
  2. spawn(function()
  3.     while true do game:GetService("RunService").Heartbeat:wait()
  4.         for i,v in pairs(game.Players:GetPlayers()) do
  5.             if v == game.Players.LocalPlayer == false then
  6.                 game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge
  7.  
  8.                 v.MaximumSimulationRadius = 0
  9.  
  10.                 game:GetService("RunService").Stepped:wait()
  11.             end
  12.         end
  13.     end
  14. end)
  15. --local mod = Instance.new("Model",workspace)
  16. local max = 5
  17. spawn(function()
  18.     while wait() do
  19.         local p   = game.Players.LocalPlayer
  20.         local m   = p:GetMouse()
  21.         m.TargetFilter = workspace
  22.         local all = workspace:GetChildren()
  23.         for i     = 1,#all do
  24.             if all[i]:IsA("Accessory") then
  25.                 local new    = all[i].Handle:FindFirstChild("BodyPosition") or Instance.new("BodyPosition")
  26.                 new.Parent   = all[i]:FindFirstChildOfClass("Part")
  27.                 new.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  28.                 new.P        = 100000
  29.                 local frame1 = CFrame.new(p.Character.PrimaryPart.Position,m.Hit.p)
  30.                 local vec    = frame1.LookVector
  31.                 new.Position = (CFrame.new(p.Character.PrimaryPart.Position)*CFrame.new((vec*1).Unit*max)).Position
  32.                 all[i].Handle.RotVelocity = Vector3.new(100000,100000,100000)
  33.                 --all[i].Parent = mod
  34.                 all[i].Handle.CanCollide = false
  35.             end
  36.         end
  37.     end
  38. end)
  39. local m = game.Players.LocalPlayer:GetMouse()
  40. m.KeyDown:Connect(function(key)
  41.     if string.lower(key) == "e" then
  42.         max = math.clamp(max+2,5,15)
  43.     else
  44.         if string.lower(key) == "q" then
  45.             max = math.clamp(max-2,5,15)
  46.         end
  47.     end
  48. end)]]
  49. wait(25)
  50. spawn(function()
  51.     while true do game:GetService("RunService").Heartbeat:wait()
  52.         for i,v in pairs(game.Players:GetPlayers()) do
  53.             if v == game.Players.LocalPlayer == false then
  54.                 game.Players.LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)*math.huge
  55.  
  56.                 v.MaximumSimulationRadius = 0
  57.  
  58.                 game:GetService("RunService").Stepped:wait()
  59.             end
  60.         end
  61.     end
  62. end)
  63. local max    = 5
  64. local target = nil
  65. spawn(function()
  66.     while wait() do
  67.         local p   = game.Players.LocalPlayer
  68.         local m   = p:GetMouse()
  69.         m.TargetFilter = workspace
  70.         local all = workspace:GetChildren()
  71.         for i     = 1,#all do
  72.             if all[i]:IsA("Accessory") then
  73.                 local new    = all[i].Handle:FindFirstChild("BodyPosition") or Instance.new("BodyPosition")
  74.                 new.Parent   = all[i]:FindFirstChildOfClass("Part")
  75.                 new.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  76.                 new.P        = 100000000000000000000000000
  77.                 local frame1 = CFrame.new(p.Character.PrimaryPart.Position,m.Hit.p)
  78.                 local vec    = frame1.LookVector
  79.                 if target~=nil then
  80.                     new.Position = target.Position
  81.                 else
  82.                     new.Position = (CFrame.new(p.Character.PrimaryPart.Position)*CFrame.new((vec*1).Unit*max)).Position
  83.                 end
  84.                 all[i].Handle.RotVelocity = Vector3.new(100000,100000,100000)
  85.                 all[i].Handle.CanCollide = false
  86.             end
  87.         end
  88.     end
  89. end)
  90. local m = game.Players.LocalPlayer:GetMouse()
  91. m.KeyDown:Connect(function(key)
  92.     if string.lower(key) == "t" then
  93.         m.TargetFilter = game.Players.LocalPlayer.Character
  94.         local t        = m.Target
  95.         if t then
  96.             if t:IsA("Part") or t:IsA("MeshPart") then
  97.                 target = t
  98.             end
  99.         end
  100.     end
  101. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement