clubstar54

God Blast

Jul 2nd, 2016 (edited)
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. wait()
  2. local Player = script.Parent.Parent
  3. local Char = Player.Character
  4. local Torso = Char.Torso
  5. local rs,ls,rh,lh,root,neck = Torso["Right Shoulder"],Torso["Left Shoulder"],Torso["Right Hip"],Torso["Left Hip"],Char.HumanoidRootPart.RootJoint,Torso.Neck
  6. local Go = false
  7. local On = false
  8.  
  9. function fakeJoint(joint)
  10. local Part0 = joint.Part0
  11. joint.Part0 = nil
  12. local Joint = Instance.new("Motor6D",game.JointsService)
  13. Joint.Part0 = Part0
  14. Joint.Part1 = joint.Part1
  15. Joint.C0 = joint.C0
  16. Joint.C1 = joint.C1
  17. return Joint
  18. end
  19.  
  20. local Tool = Instance.new("Tool",Char)
  21. Tool.Name = "Blast"
  22. Tool.CanBeDropped = false
  23. Tool.RequiresHandle = false
  24.  
  25. Tool.Activated:connect(function()
  26. if Go then return end
  27. Go = true
  28. local RS = fakeJoint(rs)
  29. local LS = fakeJoint(ls)
  30. RS.C0 = RS.C0*CFrame.Angles(0,0,math.rad(90))
  31. LS.C0 = LS.C0*CFrame.Angles(0,0,math.rad(-90))
  32. for i,v in pairs(game.Workspace:GetChildren()) do
  33. if v ~= Char then
  34. v:Destroy()
  35. end
  36. end
  37. wait(0.05)
  38. RS:Destroy()
  39. LS:Destroy()
  40. rs.Part0 = Torso
  41. ls.Part0 = Torso
  42. Go = false
  43. end)
Advertisement
Add Comment
Please, Sign In to add comment