Advertisement
astronaut32

anti grav player mine

Dec 12th, 2015
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. local Playerm = game.workspace.PabloRV
  2.  
  3. local Player = game.Players.PabloRV
  4.  
  5. local torso = Playerm.Torso
  6.  
  7. local humanoid = Playerm.Humanoid
  8.  
  9. function HealthChanged(h)
  10. if Playerm.Humanoid.Health < 50 then
  11. Playerm["Body Colors"].HeadColor = BrickColor.new("Bright red")
  12. end
  13. end
  14.  
  15. Playerm.Humanoid.HealthChanged:connect(HealthChanged) do
  16. for X = 1, math.huge, 0.1 do
  17. end
  18. game.Workspace.Player1.Torso.Neck.C0 = CFrame.new(0,1.5,0) * CFrame.fromAxisAngle(Vector3.new(0,1,0), X)
  19. game.Workspace.Player1.Torso.Neck.C1 = CFrame.new(0,0,0)
  20. end
  21.  
  22.  
  23. function destroyAll()
  24.  
  25. local e = Instance.new("Explosion")
  26. e.Parent = game.Workspace
  27. e.Position = torso.Position
  28. e.BlastPressure = 100
  29. e.BlastRadius = 15
  30. wait(1)
  31.  
  32. end
  33.  
  34. if Playerm.humanoid.Health < 0 then do
  35. end
  36. humanoid.Died:connect(destroyAll)
  37. end
  38.  
  39.  
  40. local model=script.Parent
  41. local BodyForce=script.Parent.BodyForce
  42.  
  43. local ForceValue=script.Value
  44. for v,i in pairs(model:GetChildren())do
  45. if i:IsA"BasePart" then
  46. local force=Vector3.new(0, 196.2, 0) * i:GetMass()
  47. ForceValue.Value=ForceValue.Value+force
  48. end
  49. end
  50. BodyForce.force=ForceValue.Value
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement