Advertisement
Chxp

Untitled

Aug 13th, 2015
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. Player = game.Players.Chxp
  2. function onchatted(msg)
  3. if msg == "-orb" then
  4.  
  5. P = Instance.new("Part", Player.Character)
  6. P.Shape = "Ball"
  7. P.CanCollide = false
  8. P.Size = Vector3.new(1.4,1.4,1.4)
  9.  
  10. plr = game.Players.Chxp
  11. char = plr.Character
  12. ra = char:findFirstChild'Right Arm'
  13. colors = {'Bright red','Neon orange','Really red'}
  14. part = Instance.new('Part',char)
  15. part.CanCollide = false
  16. part.FormFactor = 3
  17. part.Size = Vector3.new(1.6,1.5,1.4)
  18. part.Transparency = .5
  19. part.TopSurface,part.BottomSurface=0,0
  20. local w = Instance.new('Weld',part)
  21. w.Part0 = part
  22. w.Part1 = ra
  23. w.C1 = CFrame.new(0,-1,0)
  24.  
  25. while true do
  26. part.BrickColor = BrickColor.new(colors[math.random(1,#colors)])
  27. w.C0 = w.C0 * CFrame.Angles(math.rad(math.random(1,360)),math.rad(math.random(1,360)),math.rad(math.random(1,360)))
  28. wait(.05)
  29.  
  30. Character = Player.Character
  31. Torso = P--Character['Torso']
  32.  
  33. function StartTrail(Object)
  34. local lastPos = Object.CFrame.p
  35. coroutine.wrap(function()
  36. while Object ~= nil do
  37. wait(0.01)
  38. local objC = Instance.new('Part', Object)
  39. objC.CanCollide = false
  40. objC.Locked = true
  41. objC.FormFactor = 'Custom'
  42. objC.BrickColor = BrickColor.new("Black")
  43. objC.Parent = Object.Parent
  44. objC.Anchored = true
  45. objC.Shape = "Block"
  46. --objC.BrickColor = BrickColor.new("Really blue")
  47. objC.TopSurface,objC.BottomSurface=0,0
  48. local distance = (lastPos- Object.CFrame.p).magnitude
  49. objC.Size = Vector3.new(0.8,0.8,distance)
  50. objC.CFrame = CFrame.new(lastPos,Object.Position)*CFrame.new(0,0,-distance/2)
  51. coroutine.wrap(function()
  52. for i = 0,0.8,0.1 do
  53. wait()
  54. objC.Transparency = i
  55. pcall(function()
  56. objC.Size = objC.Size - Vector3.new(0.1,0.1,0)
  57. end)
  58. end
  59. objC:Destroy()
  60. end)()
  61. lastPos = Object.CFrame.p
  62. end
  63. end)()
  64. end
  65. StartTrail(Torso)
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. RP = Instance.new("RocketPropulsion", P)
  73. RP.MaxThrust = 1000000
  74. RP.MaxSpeed = 20
  75. RP.Target = Player.Character.Head
  76. RP:Fire()
  77. end
  78. end
  79. Player.Chatted:connect(onchatted)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement