Advertisement
fireband12

Untitled

Jan 31st, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. t = plr.Character.Torso
  3. ra = plr.Character["Right Arm"]
  4. la = plr.Character["Left Arm"]
  5. mouse = plr:GetMouse()
  6.  
  7. mouse.KeyDown:connect(function(key) -- ON KEY PRESS DOOOOOWN
  8. if key == "x" then
  9. w = Instance.new("Weld", ra)
  10. w.Part0 = ra
  11. w.Part1 = t
  12. w.C0 = CFrame.new(-1.5,0.5,0.5) * CFrame.Angles(-7.5,0,0)
  13.  
  14. plr.Character.Humanoid.WalkSpeed = 50
  15. w1 = Instance.new("Weld", la)
  16. w1.Part0 = la
  17. w1.Part1 = t
  18. w1.C0 = CFrame.new(1.5,0.5,-0.5) * CFrame.Angles(7.5,0,0)
  19.  
  20. w3 = Instance.new("Weld", ra)
  21. b = Instance.new("Part", ra)
  22. b.FormFactor = "Custom"
  23. b.Shape = "Ball"
  24. b.Color = Color3.new(0,0,200)
  25. b.Transparency = 0.5
  26. b.BottomSurface = "Smooth"
  27. b.TopSurface = "Smooth"
  28. b.Size = Vector3.new(1,1,1)
  29. plr.Character.Humanoid.WalkSpeed = 50
  30. w3.Part0 = ra
  31. w3.Part1 = b
  32. w3.C0 = CFrame.new(0,-1.5,0)
  33.  
  34. local connection --<<<<<<< no =
  35. connection = b.Touched:connect(function(obj) -- ON TOUUUUCHEEEEEEED
  36. if game.Players:GetPlayerFromCharacter(obj.Parent) then
  37. Instance.new("ForceField", plr.Character).Name = "Forced"
  38. bv = Instance.new("BodyVelocity", game.Players:GetPlayerFromCharacter(obj.Parent).Character.Torso)
  39. bv.P = Vector3.new(math.huge, math.huge, math.huge)
  40. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  41. bv.velocity = Vector3.new(math.huge,math.huge,math.huge)
  42. e = Instance.new("Explosion")
  43. e.Parent = obj.Parent
  44. e.Position = game.Players:GetPlayerFromCharacter(obj.Parent).Character.Torso.Position
  45. e.BlastRadius = 10
  46. e.BlastPressure = 10
  47. ypcall(function() plr.Character.Forced:remove() end)
  48. end
  49. if connection then connection:disconnect() end
  50. end)
  51.  
  52. end
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement