SebTDZ

FF

Jul 13th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. plr = game.Workspace:WaitForChild(owner.Name)
  2. plrH = plr:WaitForChild('HumanoidRootPart')
  3. local Part = Instance.new("Part",plr)
  4. Part.Name = "FF"
  5. Part.Position = plrH.Position
  6. Part.Size = Vector3.new(10,10,10)
  7. Part.Material = "ForceField"
  8. Part.Anchored = false
  9. Part.CanCollide = false
  10. Part.BrickColor = BrickColor.new("Bright red")
  11.  
  12. local Body = Instance.new("BodyPosition")
  13. Body.Parent = Part
  14. Body.Position = plrH.Position
  15. Body.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  16. Body.P = Body.P * 5
  17.  
  18. local Body2 = Instance.new("BodyAngularVelocity")
  19. Body2.Parent = Part
  20. Body2.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  21. Body2.AngularVelocity = Vector3.new(1, 1, 1)
  22.  
  23. Part.Touched:Connect(function(TPart)
  24.     if TPart.Name == "Handle" then
  25.         if TPart.Parent.Parent == plr then
  26.             local a = 1
  27.         else
  28.             TPart:Remove()
  29.             Body2.AngularVelocity = Vector3.new(3, 3, 3)
  30.             wait(0.5)
  31.             Body2.AngularVelocity = Vector3.new(2, 2, 2)
  32.             wait(0.5)
  33.             Body2.AngularVelocity = Vector3.new(1, 1, 1)
  34.         end
  35.     else
  36.         if TPart.Parent == plr then
  37.             local a = 1
  38.         else
  39.             if TPart.Name == "Base" then
  40.                 local a = 1
  41.             else
  42.                 TPart:Remove()
  43.                 Body2.AngularVelocity = Vector3.new(3, 3, 3)
  44.                 wait(1)
  45.                 Body2.AngularVelocity = Vector3.new(1, 1, 1)
  46.             end
  47.         end
  48.     end
  49. end)
  50.  
  51. while true do
  52.     Body.Position = plrH.Position
  53.     wait(0.1)
  54. end
Add Comment
Please, Sign In to add comment