Advertisement
Treyzotic

orbs

Aug 5th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. Me=game:GetService("Players").LocalPlayer.Character
  2. mode = false
  3. mouse = game:GetService("Players").LocalPlayer:GetMouse()
  4. mouse.KeyDown:connect(function(key)
  5. if key=="e" and mode==false then
  6. mode=true
  7. local bf=Instance.new("Folder",Me)
  8. bf.Name="Orbs"
  9. wait()
  10. for i = 1,5 do
  11. local bb1 = Instance.new("Part", bf)
  12. bb1.Name=("bb"..i)
  13. bb1.Shape="Ball"
  14. bb1.BrickColor=BrickColor.Black()
  15. bb1.Material="Neon"
  16. bb1.Anchored=false
  17. bb1.Size=Vector3.new(1,1,4)
  18. end
  19. wait()
  20. local weld1 = function()
  21. local we = Instance.new("Weld",Me)
  22. we.Part0 = Me.Torso
  23. we.Part1 = Me.Orbs.bb1
  24. we.C0 = CFrame.new(0,1.5,2)
  25. we.C1 = CFrame.new(0,0,0)
  26. local we2 = Instance.new("Weld",Me)
  27. we2.Part0 = Me.Torso
  28. we2.Part1 = Me.Orbs.bb2
  29. we2.C0 = CFrame.new(1,-2,2)
  30. we2.C1 = CFrame.new(0,0,0)
  31. local we3 = Instance.new("Weld",Me)
  32. we3.Part0 = Me.Torso
  33. we3.Part1 = Me.Orbs.bb3
  34. we3.C0 = CFrame.new(-1,-2,2)
  35. we3.C1 = CFrame.new(0,0,0)
  36. local we4 = Instance.new("Weld",Me)
  37. we4.Part0 = Me.Torso
  38. we4.Part1 = Me.Orbs.bb4
  39. we4.C0 = CFrame.new(-2,.3,2)
  40. we4.C1 = CFrame.new(0,0,0)
  41. local we5 = Instance.new("Weld",Me)
  42. we5.Part0 = Me.Torso
  43. we5.Part1 = Me.Orbs.bb5
  44. we5.C0 = CFrame.new(2,.3,2)
  45. we5.C1 = CFrame.new(0,0,0)
  46. end
  47. weld1()
  48. wait()
  49. local j = Me.Orbs
  50. local bb1p = Instance.new("ParticleEmitter",j.bb1)
  51. bb1p.Rate = 50
  52. bb1p.Lifetime= NumberRange.new(.05)
  53. bb1p.Texture="rbxassetid://262008492"--rbxassetid://?id=local j = Me.Orbs
  54. local bb2p = Instance.new("ParticleEmitter",j.bb2)
  55. bb2p.Rate = 50
  56. bb2p.Lifetime= NumberRange.new(.05)
  57. bb2p.Texture="rbxassetid://262008492"--rbxassetid://?id=
  58. local j = Me.Orbs
  59. local bb3p = Instance.new("ParticleEmitter",j.bb3)
  60. bb3p.Rate = 50
  61. bb3p.Lifetime= NumberRange.new(.05)
  62. bb3p.Texture="rbxassetid://262008492"--rbxassetid://?id=
  63. local j = Me.Orbs
  64. local bb4p = Instance.new("ParticleEmitter",j.bb4)
  65. bb4p.Rate = 50
  66. bb4p.Lifetime= NumberRange.new(.05)
  67. bb4p.Texture="rbxassetid://262008492"--rbxassetid://?id=
  68. local j = Me.Orbs
  69. local bb5p = Instance.new("ParticleEmitter",j.bb5)
  70. bb5p.Rate = 50
  71. bb5p.Lifetime= NumberRange.new(.05)
  72. bb5p.Texture="rbxassetid://262008492"--rbxassetid://?id=
  73. end
  74. end)
  75.  
  76.  
  77. mouse.KeyDown:connect(function(key)
  78. if key=="r" and mode==true then
  79. print(mouse)
  80. local bc = Instance.new("Part",Me.Orbs)
  81. bc.CanCollide = false
  82. bc.Shape = "Cylinder"
  83. bc.Material = "Neon"
  84. bc.BrickColor= BrickColor.Black()
  85. bc.Name="Portal"
  86. bc.Size = Vector3.new(0.5, 10, 10)
  87. local bcd=Instance.new("Decal",bc)
  88. bcd.Texture = "http://www.roblox.com/asset/?id=135352597"
  89. bcd.Face=Enum.NormalId.Right
  90. for i = 100,1,-1 do
  91. bc.CFrame=Me.Torso.CFrame *CFrame.new(0,2,-4) *CFrame.fromEulerAnglesXYZ(math.rad(i),1.68,math.rad(i))wait(.05)
  92. end
  93. local weld1 = function()
  94. local we = Instance.new("Weld",Me)
  95. we.Part0 = Me.Torso
  96. we.Part1 = Me.Orbs.Part
  97. we.C0 = CFrame.new(0,1.5,2)
  98. we.C1 = CFrame.new(0,0,0)
  99. end
  100. elseif mode == false then
  101. return nil
  102. end
  103. end)
  104. wait(.01)
  105. mouse.KeyDown:connect(function(key)
  106. if key=="f" and mode==true then
  107. mode = false
  108. Me.Orbs:Destroy()
  109. Me.Weld:Destroy()
  110. end
  111. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement