Advertisement
RobloxScriptzzz

Water powers

Oct 21st, 2017
492
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.58 KB | None | 0 0
  1. player = game:service("Players").LocalPlayer
  2. char = player.Character
  3. fdown = false
  4. rdown = false
  5. qdown = false
  6. suit = Instance.new("Model", char)
  7. suit.Name = "Suit"
  8. --[[
  9. for i,v in pairs(char:GetChildren()) do
  10. if v.Name ~= "Head" and v.className == "Part" then
  11. local bp = Instance.new("Part", suit)
  12. bp.Name = v.Name
  13. bp.TopSurface = "Smooth"
  14. bp.BottomSurface = "Smooth"
  15. bp.CanCollide = false
  16. bp.FormFactor = "Custom"
  17. bp.Size = v.Size
  18. bp.Material = "Foil"
  19. local bw = Instance.new("Motor6D", bp)
  20. bw.Part1 = bp
  21. bw.Part0 = v
  22. end
  23. end
  24. ]]
  25. hb = Instance.new("HopperBin", player.Backpack)
  26. hb.Name = "Water Powers"
  27. function fkey()
  28. local ps = Instance.new("Part", workspace)
  29. ps.Name = "MagicPart"
  30. ps.TopSurface = "Smooth"
  31. ps.BottomSurface = "Smooth"
  32. ps.BrickColor = BrickColor.new("Dark blue")
  33. ps.Material = "Foil"
  34. ps.FormFactor = "Custom"
  35. ps.Size = Vector3.new(6, 0.2, 6)
  36. ps.Anchored = true
  37. ps.CFrame = char.Torso.CFrame*CFrame.new(0, -3, 0)
  38. local i = 0
  39. while fdown == true do
  40. wait(0.03)
  41. i = i + 1
  42. ps.CFrame = ps.CFrame*CFrame.new(0, 0.1, 0)
  43. local ts = ps.CFrame
  44. ps.Size = Vector3.new(6, i*0.2, 6)
  45. ps.CFrame = ts
  46. end
  47. coroutine.resume(coroutine.create(function()
  48. wait(40)
  49. ps:remove()
  50. end))
  51. end
  52. function rkey()
  53. local ps = Instance.new("Part", workspace)
  54. ps.Name = "MagicPart"
  55. ps.TopSurface = "Smooth"
  56. ps.BottomSurface = "Smooth"
  57. ps.BrickColor = BrickColor.new("Dark blue")
  58. ps.Material = "Foil"
  59. ps.FormFactor = "Custom"
  60. ps.Size = Vector3.new(6, 0.2, 6)
  61. ps.Anchored = true
  62. ps.CFrame = char.Torso.CFrame*CFrame.new(0, -6, -6)*CFrame.Angles(-10, 0, 0)
  63. local i = 0
  64. while rdown == true do
  65. wait(0.03)
  66. i = i + 1
  67. ps.CFrame = ps.CFrame*CFrame.new(0, -0.1, 0)
  68. local ts = ps.CFrame
  69. ps.Size = Vector3.new(6, i*0.2, 6)
  70. ps.CFrame = ts
  71. end
  72. coroutine.resume(coroutine.create(function()
  73. wait(40)
  74. ps:remove()
  75. end))
  76. end
  77. function tkey()
  78. local ps = Instance.new("Part", workspace)
  79. ps.Name = "MagicPart"
  80. ps.TopSurface = "Smooth"
  81. ps.BottomSurface = "Smooth"
  82. ps.BrickColor = BrickColor.new("Dark blue")
  83. ps.Material = "Foil"
  84. ps.FormFactor = "Custom"
  85. ps.Size = Vector3.new(40, 30, 6)
  86. ps.Anchored = true
  87. ps.CFrame = char.Torso.CFrame*CFrame.new(0, 8, -15)*CFrame.Angles(-10, 0, 0)
  88. coroutine.resume(coroutine.create(function()
  89. wait(40)
  90. ps:remove()
  91. end))
  92. for i = 1, 300 do
  93. wait()
  94. ps.CFrame = ps.CFrame*CFrame.new(0, -0.4, 0.7)
  95. end
  96. end
  97. function ykey()
  98. local ps = Instance.new("Part", workspace)
  99. ps.Name = "Magic"
  100. ps.TopSurface = "Smooth"
  101. ps.BottomSurface = "Smooth"
  102. ps.BrickColor = BrickColor.new("Dark blue")
  103. ps.Material = "Foil"
  104. ps.FormFactor = "Custom"
  105. ps.Size = Vector3.new(40, 30, 6)
  106. ps.Anchored = true
  107. ps.CFrame = char.Torso.CFrame*CFrame.new(0, 8, -15)*CFrame.Angles(-10, 0, 0)
  108. coroutine.resume(coroutine.create(function()
  109. wait(40)
  110. ps:remove()
  111. end))
  112. end
  113. function ukey()
  114. for i = 1, 40 do
  115. local ps = Instance.new("Part", workspace)
  116. ps.Name = "MagicPart"
  117. ps.TopSurface = "Smooth"
  118. ps.BottomSurface = "Smooth"
  119. ps.BrickColor = BrickColor.new("Dark blue")
  120. ps.Material = "Foil"
  121. ps.FormFactor = "Custom"
  122. ps.Size = Vector3.new(40, 30, 6)
  123. ps.Anchored = true
  124. ps.CFrame = char.Torso.CFrame*CFrame.Angles(0, i*5, 0)
  125. ps.CFrame = ps.CFrame*CFrame.Angles(-10, 0, 0)
  126. coroutine.resume(coroutine.create(function()
  127. wait(40)
  128. ps:remove()
  129. end))
  130. coroutine.resume(coroutine.create(function()
  131. for i = 1, 300 do
  132. wait()
  133. ps.CFrame = ps.CFrame*CFrame.new(0, -0.4, 0.7)
  134. end
  135. end))
  136. end
  137. end
  138. function qkey()
  139. while qdown == true do
  140. wait(0.03)
  141. local ps = Instance.new("Part", workspace)
  142. ps.Name = "MagicPart"
  143. ps.TopSurface = "Smooth"
  144. ps.BottomSurface = "Smooth"
  145. ps.BrickColor = BrickColor.new("Dark blue")
  146. ps.Material = "Foil"
  147. ps.FormFactor = "Custom"
  148. ps.Size = Vector3.new(6, 0.2, 6)
  149. ps.Anchored = true
  150. ps.CFrame = char.Torso.CFrame*CFrame.new(0, -3, 0)
  151. end
  152. coroutine.resume(coroutine.create(function()
  153. wait(40)
  154. ps:remove()
  155. end))
  156. end
  157. hb.Selected:connect(function(mouse)
  158. mouse.KeyUp:connect(function(key)
  159. if key == "f" then
  160. fdown = false
  161. elseif key == "r" then
  162. rdown = false
  163. end
  164. end)
  165. mouse.KeyDown:connect(function(key)
  166. if key == "f" then
  167. fdown = true
  168. fkey()
  169. elseif key == "r" then
  170. rdown = true
  171. rkey()
  172. elseif key == "t" then
  173. tkey()
  174. elseif key == "u" then
  175. ukey()
  176. elseif key == "y" then
  177. ykey()
  178. elseif key == "q" then
  179. if qdown == false then
  180. qdown = true
  181. qkey()
  182. else
  183. qdown = false
  184. end
  185. end
  186. end)
  187. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement