Advertisement
SpacecowboyHX

Roblox - Duck Staff

Nov 7th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.25 KB | None | 0 0
  1. type = 3
  2. --mediafire gtfo password
  3. e1 = true
  4. e2 = true
  5. e3 = true
  6. e6 = true
  7. e7 = true
  8. user = "Indencito"
  9.  
  10. sg = Instance.new("ScreenGui")
  11. sg.Parent = game.Players[user].PlayerGui
  12. --[[button1 = Instance.new("TextButton") --Retired power.
  13. button1.Parent = sg
  14. button1.Text = "Dark Matter"
  15. button1.Position = UDim2.new(0,0,0.1,0)
  16. button1.Size = UDim2.new(0.1,0,0.1,0)
  17. button1.MouseButton1Click:connect(function()
  18. type = 1
  19. end)--]]
  20.  
  21. --[[button2 = Instance.new("TextButton") --Retired power.
  22. button2.Parent = sg
  23. button2.Text = "Ball of Fire"
  24. button2.Position = UDim2.new(0,0,0.2,0)
  25. button2.Size = UDim2.new(0.1,0,0.1,0)
  26. button2.MouseButton1Click:connect(function()
  27. type = 2
  28. end)--]]
  29.  
  30. button3 = Instance.new("TextButton")
  31. button3.Parent = sg
  32. button3.Text = "Poision Duck"
  33. button3.Position = UDim2.new(0,0,0.3,0)
  34. button3.Size = UDim2.new(0.1,0,0.1,0)
  35. button3.MouseButton1Click:connect(function()
  36. type = 3
  37. end)
  38.  
  39. button4 = Instance.new("TextButton")
  40. button4.Parent = sg
  41. button4.Text = "Dark Matter Duck"
  42. button4.Position = UDim2.new(0,0,0.4,0)
  43. button4.Size = UDim2.new(0.1,0,0.1,0)
  44. button4.MouseButton1Click:connect(function()
  45. type = 4
  46. end)
  47.  
  48. button5 = Instance.new("TextButton")
  49. button5.Parent = sg
  50. button5.Text = "Healing Duck"
  51. button5.Position = UDim2.new(0,0,0.5,0)
  52. button5.Size = UDim2.new(0.1,0,0.1,0)
  53. button5.MouseButton1Click:connect(function()
  54. type = 5
  55. end)
  56.  
  57. button6 = Instance.new("TextButton")
  58. button6.Parent = sg
  59. button6.Text = "Growing Evil Duck"
  60. button6.Position = UDim2.new(0,0,0.6,0)
  61. button6.Size = UDim2.new(0.1,0,0.1,0)
  62. button6.MouseButton1Click:connect(function()
  63. type = 6
  64. end)
  65.  
  66. button7 = Instance.new("TextButton")
  67. button7.Parent = sg
  68. button7.Text = "BOOM BOOM Duck"
  69. button7.Position = UDim2.new(0,0,0.7,0)
  70. button7.Size = UDim2.new(0.1,0,0.1,0)
  71. button7.MouseButton1Click:connect(function()
  72. type = 7
  73. end)
  74.  
  75. button8 = Instance.new("TextButton")
  76. button8.Parent = sg
  77. button8.Text = "Duck of Frozen Souls"
  78. button8.Position = UDim2.new(0,0,0.1,0)
  79. button8.Size = UDim2.new(0.1,0,0.1,0)
  80. button8.MouseButton1Click:connect(function()
  81. type = 8
  82. end)
  83.  
  84. button9 = Instance.new("TextButton")
  85. button9.Parent = sg
  86. button9.Text = "Rock Duck"
  87. button9.Position = UDim2.new(0,0,0.2,0)
  88. button9.Size = UDim2.new(0.1,0,0.1,0)
  89. button9.MouseButton1Click:connect(function()
  90. type = 9
  91. end)
  92.  
  93. tool = Instance.new("Tool")
  94. tool.Parent = game.Players[user].Backpack
  95. tool.Name = "Staff of Ducks"
  96. main = Instance.new("Part")
  97. main.Parent = tool
  98. main.Name = "Handle"
  99. main.BrickColor = BrickColor.new("Really black")
  100. main.Size = Vector3.new(1,5,1)
  101. main.formFactor = "Symmetric"
  102. main.TopSurface = "Smooth"
  103. main.BottomSurface = "Smooth"
  104. --ff = Instance.new("ForceField")
  105. --ff.Parent = main
  106. c = Instance.new("CylinderMesh")
  107. c.Parent = main
  108. c.Scale = Vector3.new(0.5,1,0.5)
  109. fdu = Instance.new("Part")
  110. fdu.Parent = tool
  111. fdu.CFrame = main.CFrame + main.CFrame.lookVector*5
  112. fdu.Size = Vector3.new(1,1,1)
  113. fdu.formFactor = "Symmetric"
  114. fdu.Transparency = 0.5
  115. fdu.BrickColor = BrickColor.new("Really red")
  116. fduck = Instance.new("SpecialMesh")
  117. fduck.Parent = fdu
  118. fduck.MeshType = "FileMesh"
  119. fduck.MeshId = "http://www.roblox.com/asset/?id=9419831"
  120. fduck.Scale = Vector3.new(1,1,1)
  121.  
  122. c1 = Instance.new("Part")
  123. c1.Parent = tool
  124. c1.Name = "Circle1"
  125. c1.BrickColor = BrickColor.new("Toothpaste")
  126. c1.Size = Vector3.new(1,1,1)
  127. c1.formFactor = "Plate"
  128. c1.TopSurface = "Smooth"
  129. c1.BottomSurface = "Smooth"
  130. c1.Reflectance = 0.3
  131. c = Instance.new("CylinderMesh")
  132. c.Parent = c1
  133. c.Scale = Vector3.new(0.6,1,0.6)
  134.  
  135.  
  136. c2 = Instance.new("Part")
  137. c2.Parent = tool
  138. c2.Name = "Circle1"
  139. c2.BrickColor = BrickColor.new("Toothpaste")
  140. c2.Size = Vector3.new(1,1,1)
  141. c2.formFactor = "Plate"
  142. c2.TopSurface = "Smooth"
  143. c2.BottomSurface = "Smooth"
  144. c2.Reflectance = 0.3
  145. c = Instance.new("CylinderMesh")
  146. c.Parent = c2
  147. c.Scale = Vector3.new(0.6,1,0.6)
  148.  
  149. c3 = Instance.new("Part")
  150. c3.Parent = tool
  151. c3.Name = "Circle1"
  152. c3.BrickColor = BrickColor.new("Toothpaste")
  153. c3.Size = Vector3.new(1,1,1)
  154. c3.formFactor = "Plate"
  155. c3.TopSurface = "Smooth"
  156. c3.BottomSurface = "Smooth"
  157. c3.Reflectance = 0.3
  158. c = Instance.new("CylinderMesh")
  159. c.Parent = c3
  160. c.Scale = Vector3.new(0.6,1,0.6)
  161.  
  162. c4 = Instance.new("Part")
  163. c4.Parent = tool
  164. c4.Name = "Circle1"
  165. c4.BrickColor = BrickColor.new("Toothpaste")
  166. c4.Size = Vector3.new(1,1,1)
  167. c4.formFactor = "Plate"
  168. c4.TopSurface = "Smooth"
  169. c4.BottomSurface = "Smooth"
  170. c4.Reflectance = 0.3
  171. c = Instance.new("CylinderMesh")
  172. c.Parent = c4
  173. c.Scale = Vector3.new(0.6,1,0.6)
  174.  
  175. c5 = Instance.new("Part")
  176. c5.Parent = tool
  177. c5.Name = "Circle1"
  178. c5.BrickColor = BrickColor.new("Really red")
  179. c5.Size = Vector3.new(1,1,1)
  180. c5.formFactor = "Symmetric"
  181. c5.TopSurface = "Smooth"
  182. c5.Transparency = 0.5
  183. c5.BottomSurface = "Smooth"
  184. c = Instance.new("SpecialMesh")
  185. c.Parent = c5
  186. c.MeshType = "Sphere"
  187. c.Scale = Vector3.new(0.6,0.6,0.6)
  188.  
  189. tool.Activated:connect(function()
  190. if type == 1 then
  191. if e1 == true then
  192. e1 = false
  193. for i = 1,20 do
  194. p = Instance.new("Part")
  195. p.Shape = "Ball"
  196. p.Transparency = 0.4
  197. p.BrickColor = BrickColor.new("Really black")
  198. p.Parent = workspace[user]
  199. p.CFrame = main.CFrame + main.CFrame.lookVector*5
  200. p.Size = Vector3.new(3,3,3)
  201. p.CanCollide = false
  202. p.TopSurface = "Smooth"
  203. p.BottomSurface = "Smooth"
  204. s = Instance.new("BodyForce")
  205. s.Parent = p
  206. s.force = workspace[user].Torso.CFrame.lookVector * 1000000
  207. p.Touched:connect(function(hit)
  208. if hit.Parent ~= workspace[user] then
  209. if hit.Parent.Humanoid then
  210. p:Remove()
  211. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 25
  212. end
  213. end
  214. end)
  215. wait(0.1)
  216. end
  217. e1 = true
  218. else return
  219. end
  220.  
  221. elseif type == 2 then
  222. if e2 == true then
  223. e2 = false
  224. ball = Instance.new("Part")
  225. ball.CanCollide = false
  226. ball.Parent = workspace[user]
  227. ball.CFrame = workspace[user].Torso.CFrame + workspace[user].Torso.CFrame.lookVector*10
  228. ball.Size = Vector3.new(1,1,1)
  229. ball.Anchored = true
  230. ball.Shape = "Ball"
  231. ball.formFactor = "Symmetric"
  232. ball.BrickColor = BrickColor.new("Really red")
  233. ball.TopSurface = "Smooth"
  234. ball.BottomSurface = "Smooth"
  235. fire = Instance.new("Fire")
  236. fire.Parent = ball
  237. for i = 1,5 do
  238. ball.Size = ball.Size + Vector3.new(1,1,1)
  239. wait(0.2)
  240. end
  241. ball.Anchored = false
  242. s = Instance.new("BodyForce")
  243. s.Parent = ball
  244. s.force = workspace[user].Torso.CFrame.lookVector * 180000
  245. for i = 1,20 do
  246. ex = Instance.new("Explosion")
  247. ex.Parent = workspace
  248. ex.Position = ball.Position
  249. ex.BlastPressure = 100
  250. ex.BlastRadius = 4.5
  251. wait(0.03)
  252. end
  253. wait(3)
  254. ball:Remove()
  255. e2 = true
  256. end
  257.  
  258. elseif type == 3 then
  259. if e3 == true then
  260. e3 = false
  261. fdu.BrickColor = BrickColor.new("Olive")
  262. ne = Instance.new("Part")
  263. ne.Shape = "Ball"
  264. ne.BrickColor = BrickColor.new("Olive")
  265. ne.Transparency = 0.5
  266. ne.Parent = workspace[user]
  267. ne.CFrame = main.CFrame + main.CFrame.lookVector*5
  268. ne.Size = Vector3.new(1,1,1)
  269. ne.TopSurface = "Smooth"
  270. ne.BottomSurface = "Smooth"
  271. bm = Instance.new("SpecialMesh")
  272. bm.Parent = ne
  273. bm.MeshType = "FileMesh"
  274. bm.MeshId = "http://www.roblox.com/asset/?id=9419831"
  275. bm.Scale = Vector3.new(0.5,0.5,0.5)
  276. s = Instance.new("BodyForce")
  277. s.Parent = ne
  278. s.force = workspace[user].Torso.CFrame.lookVector * 1750
  279. wait(.1)
  280. fdu.BrickColor = BrickColor.new("Really red")
  281. ne.Touched:connect(function(hit)
  282. if hit.Parent ~= workspace[user] then
  283. if hit.Parent.Humanoid then
  284. ne:Remove()
  285. hit.Parent.Head.BrickColor = BrickColor.new("Olive")
  286. player = game.Players:GetPlayerFromCharacter(hit.Parent)
  287. if player then
  288. sg1 = Instance.new("ScreenGui")
  289. sg1.Parent = player.PlayerGui
  290. posi = Instance.new("Frame")
  291. posi.Parent = sg1
  292. posi.Size = UDim2.new(1,0,1,0)
  293. posi.BackgroundColor3 = BrickColor.new("Olive").Color
  294. posi.BackgroundTransparency = 1
  295. for i = 1,10 do
  296. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - hit.Parent.Humanoid.MaxHealth*.10
  297. posi.BackgroundTransparency = posi.BackgroundTransparency - 0.1
  298. wait(1)
  299. end
  300. hit.Parent.Humanoid.Health = 0
  301. sg1:Remove()
  302. end
  303. end
  304. end
  305. end)
  306.  
  307. e3 = true
  308. end
  309.  
  310. elseif type == 4 then
  311. fdu.BrickColor = BrickColor.new("Really black")
  312. du = Instance.new("Part")
  313. du.Parent = workspace[user]
  314. du.CFrame = main.CFrame + main.CFrame.lookVector*5
  315. du.Size = Vector3.new(1*3,1*3,2*3)
  316. du.formFactor = "Symmetric"
  317. du.Transparency = 0.5
  318. du.BrickColor = BrickColor.new("Really black")
  319. duck = Instance.new("SpecialMesh")
  320. duck.Parent = du
  321. duck.MeshType = "FileMesh"
  322. duck.MeshId = "http://www.roblox.com/asset/?id=14810664"
  323. duck.TextureId = ""
  324. duck.Scale = Vector3.new(1*3,1*3,1*3)
  325. s = Instance.new("BodyForce")
  326. s.Parent = du
  327. s.force = workspace[user].Torso.CFrame.lookVector * 160000
  328. wait(.1)
  329. fdu.BrickColor = BrickColor.new("Really red")
  330. du.Touched:connect(function(vic)
  331. if vic.Parent ~= workspace[user] then
  332. if vic.Parent.Humanoid then
  333. vic:Remove()
  334. else return
  335. end
  336. else return
  337. end
  338. end)
  339.  
  340. elseif type == 5 then
  341. fdu.BrickColor = BrickColor.new("New Yeller")
  342. du2 = Instance.new("Part")
  343. du2.Parent = workspace[user]
  344. du2.CFrame = main.CFrame + main.CFrame.lookVector*5
  345. du2.Size = Vector3.new(1*3,1*3,2*3)
  346. du2.formFactor = "Symmetric"
  347. duck2 = Instance.new("SpecialMesh")
  348. duck2.Parent = du2
  349. duck2.MeshType = "FileMesh"
  350. duck2.MeshId = "http://www.roblox.com/asset/?id=9419831"
  351. duck2.TextureId = "http://www.roblox.com/asset/?id=9419827"
  352. duck2.Scale = Vector3.new(1*3,1*3,1*3)
  353. s = Instance.new("BodyForce")
  354. s.Parent = du2
  355. s.force = workspace[user].Torso.CFrame.lookVector * 160000
  356. wait(.1)
  357. fdu.BrickColor = BrickColor.new("Really red")
  358. du2.Touched:connect(function(vic)
  359. if vic.Parent ~= workspace[user] then
  360. if vic.Parent.Humanoid then
  361. vic.Humanoid.Health = vic.Humanoid.MaxHealth
  362. else return
  363. end
  364. else return
  365. end
  366. end)
  367.  
  368. elseif type == 6 then
  369. if e6 == true then
  370. fdu.BrickColor = BrickColor.new("Really black")
  371. e6 = false
  372. du3 = Instance.new("Part")
  373. du3.Parent = workspace[user]
  374. du3.CFrame = workspace[user].Torso.CFrame + workspace[user].Torso.CFrame.lookVector*5
  375. du3.Size = Vector3.new(1*3,1*3,2*3)
  376. du3.formFactor = "Symmetric"
  377. duck3 = Instance.new("SpecialMesh")
  378. duck3.Parent = du3
  379. duck3.MeshType = "FileMesh"
  380. duck3.MeshId = "http://www.roblox.com/asset/?id=14810664"
  381. duck3.TextureId = "http://www.roblox.com/asset/?id=14810649"
  382. duck3.Scale = Vector3.new(0,0,0)
  383. firee = Instance.new("Fire")
  384. firee.Parent = du3
  385. s = Instance.new("BodyForce")
  386. s.Parent = du3
  387. s.force = workspace[user].Torso.CFrame.lookVector * 60000
  388. wait(.1)
  389. fdu.BrickColor = BrickColor.new("Really red")
  390. du3.Touched:connect(function(vic2)
  391. if vic2.Parent ~= workspace[user] then
  392. if vic2.Parent.Humanoid then
  393. vic2:Remove()
  394. else return
  395. end
  396. else return
  397. end
  398. end)
  399. du3.Anchored = true
  400. for i = 1,3,.1 do
  401. duck3.Scale = Vector3.new(i,i,i)
  402. wait(0.03)
  403. end
  404. du3.Anchored = false
  405. e6 = true
  406. end
  407.  
  408.  
  409. elseif type == 7 then
  410. if e7 == true then
  411. fdu.BrickColor = BrickColor.new("New Yeller")
  412. e7 = false
  413. edu = Instance.new("Part")
  414. edu.Parent = workspace[user]
  415. edu.CFrame = workspace[user].Head.CFrame + Vector3.new(0,100,0)
  416. edu.Size = Vector3.new(1*20,1*20,2*20)
  417. edu.formFactor = "Symmetric"
  418. edu.TopSurface = "Smooth"
  419. edu.BottomSurface = "Smooth"
  420. educk = Instance.new("SpecialMesh")
  421. educk.Parent = edu
  422. educk.MeshType = "FileMesh"
  423. educk.MeshId = "http://www.roblox.com/asset/?id=9419831"
  424. educk.TextureId = "http://www.roblox.com/asset/?id=9419827"
  425. educk.Scale = Vector3.new(50,50,50)
  426. edu.Anchored = true
  427. wait(.1)
  428. fdu.BrickColor = BrickColor.new("Really red")
  429. edu.Anchored = false
  430. wait(5)
  431. eex = Instance.new("Explosion")
  432. eex.Parent = workspace
  433. eex.Position = edu.Position
  434. eex.BlastPressure = 100000
  435. eex.BlastRadius = 50
  436. wait(1)
  437. edu:Remove()
  438. e7 = true
  439. end
  440.  
  441. elseif type == 8 then
  442.  
  443. fdu.BrickColor = BrickColor.new("Toothpaste")
  444. du4 = Instance.new("Part")
  445. du4.Parent = workspace[user]
  446. du4.CFrame = main.CFrame + main.CFrame.lookVector*5
  447. du4.Size = Vector3.new(1*3,1*3,2*3)
  448. du4.formFactor = "Symmetric"
  449. du4.Transparency = 0.5
  450. du4.BrickColor = BrickColor.new("Toothpaste")
  451. duck4 = Instance.new("SpecialMesh")
  452. duck4.Parent = du4
  453. duck4.MeshType = "FileMesh"
  454. duck4.MeshId = "http://www.roblox.com/asset/?id=9419831"
  455. duck4.Scale = Vector3.new(1*3,1*3,1*3)
  456. s = Instance.new("BodyForce")
  457. s.Parent = du4
  458. s.force = workspace[user].Torso.CFrame.lookVector * 160000
  459. wait(.1)
  460. fdu.BrickColor = BrickColor.new("Really red")
  461. du4.Touched:connect(function(vic3)
  462. if vic3.Parent ~= workspace[user] then
  463. if vic3.Parent.Humanoid then
  464. vic3.BrickColor = BrickColor.new("Toothpaste")
  465. vic3.Reflectance = 0.2
  466. vic3.Transparency = 0.5
  467. vic3.Anchored = true
  468. wait(5)
  469. vic3:Remove()
  470. else return
  471. end
  472. else return
  473. end
  474. end)
  475.  
  476.  
  477. elseif type == 9 then
  478.  
  479.  
  480. du5 = Instance.new("Part")
  481. du5.Parent = workspace[user]
  482. du5.CFrame = main.CFrame + main.CFrame.lookVector*5
  483. du5.Size = Vector3.new(1*3,1*3,2*3)
  484. du5.formFactor = "Symmetric"
  485. du5.TopSurface = "Smooth"
  486. du5.BottomSurface = "Smooth"
  487. du5.BrickColor = BrickColor.new("Dark stone grey")
  488. duck5 = Instance.new("SpecialMesh")
  489. duck5.Parent = du5
  490. duck5.MeshType = "FileMesh"
  491. duck5.MeshId = "http://www.roblox.com/asset/?id=9419831"
  492. duck5.Scale = Vector3.new(3,3,3)
  493. s = Instance.new("BodyForce")
  494. s.Parent = du5
  495. s.force = main.CFrame.lookVector * 30000
  496. du5.Touched:connect(function(hit)
  497. if hit.Parent.Name ~= user then
  498. if hit.Parent.Humanoid then
  499. hit.Parent.Humanoid.WalkSpeed = 5
  500. wait(5)
  501. hit.Parent.Humanoid.WalkSpeed = 16
  502. else return
  503. end
  504. else return
  505. end
  506. end)
  507.  
  508. end
  509. end)
  510. ----------------------------------------
  511. tool.Equipped:connect(function()
  512. weld = Instance.new("Weld")
  513. weld.Parent = fdu
  514. weld.Part0 = fdu
  515. weld.Part1 = main
  516. weld.C0 = CFrame.new(0,-2.5,0)
  517.  
  518. weld2 = Instance.new("Weld")
  519. weld2.Parent = c1
  520. weld2.Part0 = c1
  521. weld2.Part1 = main
  522. weld2.C0 = CFrame.new(0,-1.5,0)
  523.  
  524. weld3 = Instance.new("Weld")
  525. weld3.Parent = c2
  526. weld3.Part0 = c2
  527. weld3.Part1 = main
  528. weld3.C0 = CFrame.new(0,-1,0)
  529.  
  530. weld4 = Instance.new("Weld")
  531. weld4.Parent = c3
  532. weld4.Part0 = c3
  533. weld4.Part1 = main
  534. weld4.C0 = CFrame.new(0,1,0)
  535.  
  536. weld5 = Instance.new("Weld")
  537. weld5.Parent = c4
  538. weld5.Part0 = c4
  539. weld5.Part1 = main
  540. weld5.C0 = CFrame.new(0,1.5,0)
  541.  
  542. weld6 = Instance.new("Weld")
  543. weld6.Parent = c5
  544. weld6.Part0 = c5
  545. weld6.Part1 = main
  546. weld6.C0 = CFrame.new(0,2.5,0)
  547. end)
  548.  
  549. tool.Unequipped:connect(function()
  550. weld:Remove()
  551. weld2:Remove()
  552. weld3:Remove()
  553. weld4:Remove()
  554. weld5:Remove()
  555. weld6:Remove()
  556. end)
  557.  
  558. while true do
  559. for i = 1,10 do
  560. fduck.Scale = fduck.Scale + Vector3.new(0.01,0.01,0.01)
  561. wait(0.03)
  562. end
  563. for i = 1,10 do
  564. fduck.Scale = fduck.Scale - Vector3.new(0.01,0.01,0.01)
  565. wait(0.03)
  566. end
  567. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement