Advertisement
Guest User

Bubble

a guest
Jul 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.56 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local char = plr.Character
  3. local mouse = plr:GetMouse()
  4. local tweenservice = game:GetService("TweenService")
  5. local humanoid = char:WaitForChild("Humanoid")
  6. local shieldspellname = "Bubble Situation!"
  7. local UINS = game:GetService("UserInputService")
  8. local Debounce = false
  9. local Remote = game:GetService("ReplicatedStorage"):WaitForChild('🔐🔐🔐🔐🔐🔐🔐🔐')
  10. local torso = char.HumanoidRootPart
  11. local ten = true
  12. local ten2 = true
  13. local ten3 = true
  14. local ten4 = true
  15. local ten5 = true
  16. UINS.InputEnded:connect(function(key)
  17. if key.KeyCode == Enum.KeyCode.Q then
  18. if ten == true then
  19. ten = false
  20. torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p*Vector3.new(1,0,1) + torso.Position*Vector3.new(0, 1, 0)
  21. game:GetService("Chat"):Chat(char.Head, "Bubble Shield!")
  22. local animation = Instance.new("Animation")
  23. animation.AnimationId = "rbxassetid://1932813608"
  24. local anim = humanoid:LoadAnimation(animation)
  25. anim:Play()
  26. local bubbleshield = Instance.new("Part", game.Workspace)
  27. bubbleshield.CanCollide = false
  28. bubbleshield.Material = "Glass"
  29. bubbleshield.Color = Color3.fromRGB(237, 234, 234)
  30. bubbleshield.CFrame = char.HumanoidRootPart.CFrame *CFrame.new(0,1,-5)
  31. bubbleshield.Size = Vector3.new(0,0,0)
  32. bubbleshield.Transparency = 0.5
  33. bubbleshield.Name = shieldspellname
  34. bubbleshield.Shape = "Ball"
  35. bubbleshield.Touched:Connect(function(hit)
  36. local pop = {}
  37. pop.Size = Vector3.new(20,20,20)
  38. pop.Transparency = 1
  39. local tweeninfo1 = TweenInfo.new(0.1)
  40. local tween1 = tweenservice:Create(bubbleshield, tweeninfo1, pop)
  41. tween1:Play()
  42. wait(0.3)
  43. bubbleshield:Destroy()
  44. local animation3 = Instance.new("Animation")
  45. animation3.AnimationId = "rbxassetid://01932836089"
  46. local anim3 = humanoid:LoadAnimation(animation3)
  47. anim3:Play()
  48. end)
  49. local v = Instance.new("BodyVelocity", bubbleshield)
  50. v.Name = "BodyVelocity"
  51. v.Velocity = char.HumanoidRootPart.CFrame.lookVector * math.random(1, 80)
  52. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  53. local connection = Instance.new("Attachment", bubbleshield)
  54. local connection2 = Instance.new("Attachment", char["Right Arm"])
  55. local beam = Instance.new("Beam", bubbleshield)
  56. beam.Attachment0 = connection
  57. beam.Attachment1 = connection2
  58. beam.TextureLength = -1
  59. beam.Texture = "http://www.roblox.com/asset/?id=1931087996"
  60. local goal = {}
  61. goal.Size = Vector3.new(5,5,5)
  62. local tweeninfo = TweenInfo.new(0.5)
  63. local tween = tweenservice:Create(bubbleshield, tweeninfo, goal)
  64. tween:Play()
  65. wait(5)
  66. local pop2 = {}
  67. pop2.Color = Color3.new(math.random(),math.random(),math.random())
  68. pop2.Size = Vector3.new(20,20,20)
  69. pop2.Transparency = 1
  70. local tweeninfo1 = TweenInfo.new(0.1)
  71. local tween1 = tweenservice:Create(bubbleshield, tweeninfo1, pop2)
  72. tween1:Play()
  73. bubbleshield.Anchored = true
  74. wait(0.3)
  75. bubbleshield:Destroy()
  76. wait(5)
  77. ten = true
  78. end
  79. end
  80. end)
  81. UINS.InputEnded:connect(function(key)
  82. if key.KeyCode == Enum.KeyCode.E then
  83. if ten2 == true then
  84. ten2 = false
  85. game:GetService("Chat"):Chat(char.Head, "Bubble Trap!")
  86. torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p*Vector3.new(1,0,1) + torso.Position*Vector3.new(0, 1, 0))
  87. local bubbletrap = Instance.new("Part", game.Workspace)
  88. bubbletrap.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(-8,5,0)
  89. bubbletrap.Shape = "Ball"
  90. bubbletrap.Material = "Glass"
  91. bubbletrap.Transparency = 0.5
  92. bubbletrap.CanCollide = false
  93. bubbletrap.Size = Vector3.new(0,0,0)
  94. bubbletrap.Touched:Connect(function()
  95. local pop1 = {}
  96. pop1.Size = Vector3.new(30,30,30)
  97. pop1.Transparency = 1
  98. local tween3 = tweenservice:Create(bubbletrap, TweenInfo.new(0.5), pop1)
  99. tween3:Play()
  100. wait(2)
  101. bubbletrap:Destroy()
  102. end)
  103. local v = Instance.new("BodyVelocity", bubbletrap)
  104. v.Name = "BodyVelocity"
  105. v.Velocity = char.HumanoidRootPart.CFrame.lookVector * 30
  106. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  107. local goal = {}
  108. goal.Size = Vector3.new(10,10,10)
  109. local tweeninfo = TweenInfo.new(0.1)
  110. local tween = tweenservice:Create(bubbletrap, tweeninfo, goal)
  111. tween:Play()
  112. wait(3)
  113. local pop = {}
  114. pop.Size = Vector3.new(30,30,30)
  115. pop.Transparency = 1
  116. local tween3 = tweenservice:Create(bubbletrap, TweenInfo.new(0.5), pop)
  117. tween3:Play()
  118. wait(2)
  119. bubbletrap:Destroy()
  120. wait(4)
  121. ten2 = true
  122.  
  123. end
  124. end
  125. end)
  126.  
  127. UINS.InputEnded:connect(function(key)
  128. if key.KeyCode == Enum.KeyCode.R then
  129.  
  130. if ten3 == true then
  131. ten3 = false
  132. torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p*Vector3.new(1,0,1) + torso.Position*Vector3.new(0, 1, 0))
  133. game:GetService("Chat"):Chat(char.Head, "Bubble Trouble!")
  134. local bubbletrouble = Instance.new("Part", game.Workspace)
  135. bubbletrouble.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,0,0)
  136. bubbletrouble.Shape = "Ball"
  137. bubbletrouble.Material = "Glass"
  138. bubbletrouble.Transparency = 0.5
  139. bubbletrouble.CanCollide = false
  140. bubbletrouble.Anchored = true
  141. bubbletrouble.Color = Color3.fromRGB(192, 193, 247)
  142. bubbletrouble.Size = Vector3.new(0,0,0)
  143. mouse.Move:Connect(function()
  144. local teleport = {}
  145. teleport.CFrame = CFrame.new(mouse.Hit.p.X, mouse.hit.p.Y, mouse.Hit.p.Z)
  146. local teleporting = tweenservice:Create(bubbletrouble, TweenInfo.new(1), teleport)
  147. teleporting:Play()
  148. end)
  149. local goal = {}
  150. goal.Size = Vector3.new(15,15,15)
  151. local goal5 = {}
  152. goal.Size = Vector3.new(15,15,15)
  153. local tween0 = tweenservice:Create(bubbletrouble, TweenInfo.new(5), goal5)
  154. tween0:Play()
  155. local tween = tweenservice:Create(bubbletrouble, TweenInfo.new(5), goal)
  156. tween:Play()
  157. wait(3)
  158. local goal2 = {}
  159. goal2.Transparency = 1
  160. local tween2 = tweenservice:Create(bubbletrouble, TweenInfo.new(0.3), goal2)
  161. tween2:Play()
  162. wait(1)
  163. bubbletrouble:Destroy()
  164. wait(3)
  165. ten3 = true
  166. end
  167. end
  168. end)
  169.  
  170. UINS.InputEnded:connect(function(key)
  171. if key.KeyCode == Enum.KeyCode.T then
  172. if ten4 == true then
  173. ten4 = false
  174. torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p*Vector3.new(1,0,1) + torso.Position*Vector3.new(0, 1, 0))
  175. game:GetService("Chat"):Chat(char.Head, "Flowing Bubble!")
  176. char.Humanoid.Jump = true
  177. wait(0.3)
  178. local moving = Instance.new("BodyVelocity", char.HumanoidRootPart)
  179. moving.Velocity = char.HumanoidRootPart.CFrame.lookVector * 70
  180. moving.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  181. local armlefthumanoid = char["Left Arm"]
  182. local torso = char.Torso
  183. local head = char.Head
  184. local hleg = char["Left Leg"]
  185. local fleg = char["Right Leg"]
  186. local armrighthumanoid = char["Right Arm"]
  187. local aura = Instance.new("ParticleEmitter", char.HumanoidRootPart)
  188. aura.Speed = NumberRange.new(0,0)
  189. aura.RotSpeed = NumberRange.new(360,360)
  190. aura.Texture = "rbxassetid://1931087996"
  191. local goal = {}
  192. goal.Transparency = 0.9
  193. local goal2 = {}
  194. goal2.Transparency = 0.9
  195. local goal3 = {}
  196. goal3.Transparency = 0.9
  197. local goal4 = {}
  198. goal4.Transparency = 0.9
  199. local goal5 = {}
  200. goal5.Transparency = 0.9
  201. local he = {}
  202. he.Transparency = 0.9
  203. local tween = tweenservice:Create(armlefthumanoid, TweenInfo.new(5), goal)
  204. tween:Play()
  205. local tween2 = tweenservice:Create(armrighthumanoid, TweenInfo.new(5), goal2)
  206. tween2:Play()
  207. local tween3 = tweenservice:Create(fleg, TweenInfo.new(5), goal3)
  208. tween3:Play()
  209. local tween4 = tweenservice:Create(hleg, TweenInfo.new(5), goal4)
  210. tween4:Play()
  211. local tween6 = tweenservice:Create(torso, TweenInfo.new(5), goal5)
  212. tween6:Play()
  213. local tween7 = tweenservice:Create(head, TweenInfo.new(5), he)
  214. tween7:Play()
  215. wait(3)
  216. local goal6 = {}
  217. goal6.Transparency = 0
  218. local goal7 = {}
  219. goal7.Transparency = 0
  220. local goal8 = {}
  221. goal8.Transparency = 0
  222. local goal9 = {}
  223. goal9.Transparency = 0
  224. local goal10 = {}
  225. goal10.Transparency = 0
  226. local goal0 = {}
  227. goal0.Transparency = 0
  228. local tween6 = tweenservice:Create(armlefthumanoid, TweenInfo.new(0.5), goal6)
  229. tween6:Play()
  230. local tween7 = tweenservice:Create(armrighthumanoid, TweenInfo.new(0.5), goal7)
  231. tween7:Play()
  232. local tween8 = tweenservice:Create(fleg, TweenInfo.new(0.5), goal8)
  233. tween8:Play()
  234. local tween9 = tweenservice:Create(hleg, TweenInfo.new(0.5), goal9)
  235. tween9:Play()
  236. local tween10 = tweenservice:Create(torso, TweenInfo.new(0.5), goal10)
  237. tween10:Play()
  238. local tween0 = tweenservice:Create(head, TweenInfo.new(0.,5), goal0)
  239. tween0:Play()
  240. moving:Destroy()
  241. aura:Destroy()
  242. wait(3)
  243. ten4 = true
  244. end
  245. end
  246. end)
  247.  
  248. UINS.InputEnded:connect(function(key)
  249. if key.KeyCode == Enum.KeyCode.Y then
  250. if ten5 == true then
  251. ten5 = false
  252. torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p*Vector3.new(1,0,1) + torso.Position*Vector3.new(0, 1, 0))
  253. local shockwaves = Instance.new("Part", game.Workspace)
  254. shockwaves.Shape = "Cylinder"
  255. shockwaves.Anchored = true
  256. shockwaves.Material = "Neon"
  257. shockwaves.Color = Color3.fromRGB(4, 175, 236)
  258. shockwaves.Transparency = 0.5
  259. shockwaves.Size = Vector3.new(0,0,0)
  260. shockwaves.CanCollide = false
  261. shockwaves.CFrame = char.HumanoidRootPart.CFrame *CFrame.new(0,-3, 0)
  262. local shockwaves2 = Instance.new("Part", game.Workspace)
  263. shockwaves2.Shape = "Cylinder"
  264. shockwaves2.Anchored = true
  265. shockwaves2.Material = "Neon"
  266. shockwaves2.Color = Color3.fromRGB(4, 175, 236)
  267. shockwaves2.Transparency = 0.5
  268. shockwaves2.Size = Vector3.new(0,0,0)
  269. shockwaves2.CanCollide = false
  270. shockwaves2.CFrame = char.HumanoidRootPart.CFrame *CFrame.new(0,-3, 0)
  271. local goal2 = {}
  272. goal2.Orientation = Vector3.new(0, 0, 90)
  273. local t = tweenservice:Create(shockwaves, TweenInfo.new(0.1), goal2)
  274. t:Play()
  275. local goal4 = {}
  276. goal4.Orientation = Vector3.new(0,0,90)
  277. local t3 = tweenservice:Create(shockwaves2, TweenInfo.new(0.1), goal4)
  278. t3:Play()
  279. wait(0.1)
  280. local goal3 = {}
  281. goal3.Size = Vector3.new(1,150,150)
  282. goal3.Transparency = 1
  283. local t2 = tweenservice:Create(shockwaves, TweenInfo.new(5), goal3)
  284. t2:Play()
  285. wait(0.1)
  286. local goal5 = {}
  287. goal5.Size = Vector3.new(1,150,150)
  288. goal5.Transparency = 1
  289. local t7 = tweenservice:Create(shockwaves2, TweenInfo.new(10), goal5)
  290. t7:Play()
  291. wait(5)
  292. torso.CFrame = CFrame.new(torso.Position, mouse.Hit.p*Vector3.new(1,0,1) + torso.Position*Vector3.new(0, 1, 0))
  293. game:GetService("Chat"):Chat(char.Head, "Bubble Spin!")
  294. shockwaves:Destroy()
  295. shockwaves2:Destroy()
  296. local bubbleshiel = Instance.new("Part", game.Workspace)
  297. bubbleshiel.CanCollide = false
  298. bubbleshiel.Material = "Glass"
  299. bubbleshiel.Color = Color3.fromRGB(237, 234, 234)
  300. bubbleshiel.CFrame = char.HumanoidRootPart.CFrame *CFrame.new(0,1,-3)
  301. bubbleshiel.Size = Vector3.new(0,0,0)
  302. bubbleshiel.Transparency = 0.5
  303. bubbleshiel.Name = shieldspellname
  304. bubbleshiel.Shape = "Ball"
  305. local v = Instance.new("BodyVelocity", bubbleshiel)
  306. v.Velocity = char.HumanoidRootPart.CFrame.lookVector * 50
  307. v.MaxForce = Vector3.new(math.huge,math.huge,math.huge) -- (inf,inf,inf)
  308. local goal = {}
  309. goal.Size = Vector3.new(150,150,150)
  310. local tw = tweenservice:Create(bubbleshiel, TweenInfo.new(10), goal)
  311. tw:Play()
  312. wait(70)
  313. ten5 = true
  314.  
  315. end
  316. end
  317. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement