Advertisement
doryna2281337

Untitled

Aug 14th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.15 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. type = 3
  85. --mediafire gtfo password
  86. e1 = true
  87. e2 = true
  88. e3 = true
  89. e6 = true
  90. e7 = true
  91. user = "doryna2281337"
  92.  
  93. sg = Instance.new("ScreenGui")
  94. sg.Parent = game.Players[user].PlayerGui
  95. --[[button1 = Instance.new("TextButton") --Retired power.
  96. button1.Parent = sg
  97. button1.Text = "Dark Matter"
  98. button1.Position = UDim2.new(0,0,0.1,0)
  99. button1.Size = UDim2.new(0.1,0,0.1,0)
  100. button1.MouseButton1Click:connect(function()
  101. type = 1
  102. end)--]]
  103.  
  104. --[[button2 = Instance.new("TextButton") --Retired power.
  105. button2.Parent = sg
  106. button2.Text = "Ball of Fire"
  107. button2.Position = UDim2.new(0,0,0.2,0)
  108. button2.Size = UDim2.new(0.1,0,0.1,0)
  109. button2.MouseButton1Click:connect(function()
  110. type = 2
  111. end)--]]
  112.  
  113. button3 = Instance.new("TextButton")
  114. button3.Parent = sg
  115. button3.Text = "Poision Duck"
  116. button3.Position = UDim2.new(0,0,0.3,0)
  117. button3.Size = UDim2.new(0.1,0,0.1,0)
  118. button3.MouseButton1Click:connect(function()
  119. type = 3
  120. end)
  121.  
  122. button4 = Instance.new("TextButton")
  123. button4.Parent = sg
  124. button4.Text = "Dark Matter Duck"
  125. button4.Position = UDim2.new(0,0,0.4,0)
  126. button4.Size = UDim2.new(0.1,0,0.1,0)
  127. button4.MouseButton1Click:connect(function()
  128. type = 4
  129. end)
  130.  
  131. button5 = Instance.new("TextButton")
  132. button5.Parent = sg
  133. button5.Text = "Healing Duck"
  134. button5.Position = UDim2.new(0,0,0.5,0)
  135. button5.Size = UDim2.new(0.1,0,0.1,0)
  136. button5.MouseButton1Click:connect(function()
  137. type = 5
  138. end)
  139.  
  140. button6 = Instance.new("TextButton")
  141. button6.Parent = sg
  142. button6.Text = "Growing Evil Duck"
  143. button6.Position = UDim2.new(0,0,0.6,0)
  144. button6.Size = UDim2.new(0.1,0,0.1,0)
  145. button6.MouseButton1Click:connect(function()
  146. type = 6
  147. end)
  148.  
  149. button7 = Instance.new("TextButton")
  150. button7.Parent = sg
  151. button7.Text = "BOOM BOOM Duck"
  152. button7.Position = UDim2.new(0,0,0.7,0)
  153. button7.Size = UDim2.new(0.1,0,0.1,0)
  154. button7.MouseButton1Click:connect(function()
  155. type = 7
  156. end)
  157.  
  158. button8 = Instance.new("TextButton")
  159. button8.Parent = sg
  160. button8.Text = "Duck of Frozen Souls"
  161. button8.Position = UDim2.new(0,0,0.1,0)
  162. button8.Size = UDim2.new(0.1,0,0.1,0)
  163. button8.MouseButton1Click:connect(function()
  164. type = 8
  165. end)
  166.  
  167. button9 = Instance.new("TextButton")
  168. button9.Parent = sg
  169. button9.Text = "Rock Duck"
  170. button9.Position = UDim2.new(0,0,0.2,0)
  171. button9.Size = UDim2.new(0.1,0,0.1,0)
  172. button9.MouseButton1Click:connect(function()
  173. type = 9
  174. end)
  175.  
  176. tool = Instance.new("Tool")
  177. tool.Parent = game.Players[user].Backpack
  178. tool.Name = "Staff of Ducks"
  179. main = Instance.new("Part")
  180. main.Parent = tool
  181. main.Name = "Handle"
  182. main.BrickColor = BrickColor.new("Really black")
  183. main.Size = Vector3.new(1,5,1)
  184. main.formFactor = "Symmetric"
  185. main.TopSurface = "Smooth"
  186. main.BottomSurface = "Smooth"
  187. --ff = Instance.new("ForceField")
  188. --ff.Parent = main
  189. c = Instance.new("CylinderMesh")
  190. c.Parent = main
  191. c.Scale = Vector3.new(0.5,1,0.5)
  192. fdu = Instance.new("Part")
  193. fdu.Parent = tool
  194. fdu.CFrame = main.CFrame + main.CFrame.lookVector*5
  195. fdu.Size = Vector3.new(1,1,1)
  196. fdu.formFactor = "Symmetric"
  197. fdu.Transparency = 0.5
  198. fdu.BrickColor = BrickColor.new("Really red")
  199. fduck = Instance.new("SpecialMesh")
  200. fduck.Parent = fdu
  201. fduck.MeshType = "FileMesh"
  202. fduck.MeshId = "http://www.roblox.com/asset/?id=9419831"
  203. fduck.Scale = Vector3.new(1,1,1)
  204.  
  205. c1 = Instance.new("Part")
  206. c1.Parent = tool
  207. c1.Name = "Circle1"
  208. c1.BrickColor = BrickColor.new("Toothpaste")
  209. c1.Size = Vector3.new(1,1,1)
  210. c1.formFactor = "Plate"
  211. c1.TopSurface = "Smooth"
  212. c1.BottomSurface = "Smooth"
  213. c1.Reflectance = 0.3
  214. c = Instance.new("CylinderMesh")
  215. c.Parent = c1
  216. c.Scale = Vector3.new(0.6,1,0.6)
  217.  
  218.  
  219. c2 = Instance.new("Part")
  220. c2.Parent = tool
  221. c2.Name = "Circle1"
  222. c2.BrickColor = BrickColor.new("Toothpaste")
  223. c2.Size = Vector3.new(1,1,1)
  224. c2.formFactor = "Plate"
  225. c2.TopSurface = "Smooth"
  226. c2.BottomSurface = "Smooth"
  227. c2.Reflectance = 0.3
  228. c = Instance.new("CylinderMesh")
  229. c.Parent = c2
  230. c.Scale = Vector3.new(0.6,1,0.6)
  231.  
  232. c3 = Instance.new("Part")
  233. c3.Parent = tool
  234. c3.Name = "Circle1"
  235. c3.BrickColor = BrickColor.new("Toothpaste")
  236. c3.Size = Vector3.new(1,1,1)
  237. c3.formFactor = "Plate"
  238. c3.TopSurface = "Smooth"
  239. c3.BottomSurface = "Smooth"
  240. c3.Reflectance = 0.3
  241. c = Instance.new("CylinderMesh")
  242. c.Parent = c3
  243. c.Scale = Vector3.new(0.6,1,0.6)
  244.  
  245. c4 = Instance.new("Part")
  246. c4.Parent = tool
  247. c4.Name = "Circle1"
  248. c4.BrickColor = BrickColor.new("Toothpaste")
  249. c4.Size = Vector3.new(1,1,1)
  250. c4.formFactor = "Plate"
  251. c4.TopSurface = "Smooth"
  252. c4.BottomSurface = "Smooth"
  253. c4.Reflectance = 0.3
  254. c = Instance.new("CylinderMesh")
  255. c.Parent = c4
  256. c.Scale = Vector3.new(0.6,1,0.6)
  257.  
  258. c5 = Instance.new("Part")
  259. c5.Parent = tool
  260. c5.Name = "Circle1"
  261. c5.BrickColor = BrickColor.new("Really red")
  262. c5.Size = Vector3.new(1,1,1)
  263. c5.formFactor = "Symmetric"
  264. c5.TopSurface = "Smooth"
  265. c5.Transparency = 0.5
  266. c5.BottomSurface = "Smooth"
  267. c = Instance.new("SpecialMesh")
  268. c.Parent = c5
  269. c.MeshType = "Sphere"
  270. c.Scale = Vector3.new(0.6,0.6,0.6)
  271.  
  272. tool.Activated:connect(function()
  273. if type == 1 then
  274. if e1 == true then
  275. e1 = false
  276. for i = 1,20 do
  277. p = Instance.new("Part")
  278. p.Shape = "Ball"
  279. p.Transparency = 0.4
  280. p.BrickColor = BrickColor.new("Really black")
  281. p.Parent = workspace[user]
  282. p.CFrame = main.CFrame + main.CFrame.lookVector*5
  283. p.Size = Vector3.new(3,3,3)
  284. p.CanCollide = false
  285. p.TopSurface = "Smooth"
  286. p.BottomSurface = "Smooth"
  287. s = Instance.new("BodyForce")
  288. s.Parent = p
  289. s.force = workspace[user].Torso.CFrame.lookVector * 1000000
  290. p.Touched:connect(function(hit)
  291. if hit.Parent ~= workspace[user] then
  292. if hit.Parent.Humanoid then
  293. p:Remove()
  294. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 25
  295. end
  296. end
  297. end)
  298. wait(0.1)
  299. end
  300. e1 = true
  301. else return
  302. end
  303.  
  304. elseif type == 2 then
  305. if e2 == true then
  306. e2 = false
  307. ball = Instance.new("Part")
  308. ball.CanCollide = false
  309. ball.Parent = workspace[user]
  310. ball.CFrame = workspace[user].Torso.CFrame + workspace[user].Torso.CFrame.lookVector*10
  311. ball.Size = Vector3.new(1,1,1)
  312. ball.Anchored = true
  313. ball.Shape = "Ball"
  314. ball.formFactor = "Symmetric"
  315. ball.BrickColor = BrickColor.new("Really red")
  316. ball.TopSurface = "Smooth"
  317. ball.BottomSurface = "Smooth"
  318. fire = Instance.new("Fire")
  319. fire.Parent = ball
  320. for i = 1,5 do
  321. ball.Size = ball.Size + Vector3.new(1,1,1)
  322. wait(0.2)
  323. end
  324. ball.Anchored = false
  325. s = Instance.new("BodyForce")
  326. s.Parent = ball
  327. s.force = workspace[user].Torso.CFrame.lookVector * 180000
  328. for i = 1,20 do
  329. ex = Instance.new("Explosion")
  330. ex.Parent = workspace
  331. ex.Position = ball.Position
  332. ex.BlastPressure = 100
  333. ex.BlastRadius = 4.5
  334. wait(0.03)
  335. end
  336. wait(3)
  337. ball:Remove()
  338. e2 = true
  339. end
  340.  
  341. elseif type == 3 then
  342. if e3 == true then
  343. e3 = false
  344. fdu.BrickColor = BrickColor.new("Olive")
  345. ne = Instance.new("Part")
  346. ne.Shape = "Ball"
  347. ne.BrickColor = BrickColor.new("Olive")
  348. ne.Transparency = 0.5
  349. ne.Parent = workspace[user]
  350. ne.CFrame = main.CFrame + main.CFrame.lookVector*5
  351. ne.Size = Vector3.new(1,1,1)
  352. ne.TopSurface = "Smooth"
  353. ne.BottomSurface = "Smooth"
  354. bm = Instance.new("SpecialMesh")
  355. bm.Parent = ne
  356. bm.MeshType = "FileMesh"
  357. bm.MeshId = "http://www.roblox.com/asset/?id=9419831"
  358. bm.Scale = Vector3.new(0.5,0.5,0.5)
  359. s = Instance.new("BodyForce")
  360. s.Parent = ne
  361. s.force = workspace[user].Torso.CFrame.lookVector * 1750
  362. wait(.1)
  363. fdu.BrickColor = BrickColor.new("Really red")
  364. ne.Touched:connect(function(hit)
  365. if hit.Parent ~= workspace[user] then
  366. if hit.Parent.Humanoid then
  367. ne:Remove()
  368. hit.Parent.Head.BrickColor = BrickColor.new("Olive")
  369. player = game.Players:GetPlayerFromCharacter(hit.Parent)
  370. if player then
  371. sg1 = Instance.new("ScreenGui")
  372. sg1.Parent = player.PlayerGui
  373. posi = Instance.new("Frame")
  374. posi.Parent = sg1
  375. posi.Size = UDim2.new(1,0,1,0)
  376. posi.BackgroundColor3 = BrickColor.new("Olive").Color
  377. posi.BackgroundTransparency = 1
  378. for i = 1,10 do
  379. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - hit.Parent.Humanoid.MaxHealth*.10
  380. posi.BackgroundTransparency = posi.BackgroundTransparency - 0.1
  381. wait(1)
  382. end
  383. hit.Parent.Humanoid.Health = 0
  384. sg1:Remove()
  385. end
  386. end
  387. end
  388. end)
  389.  
  390. e3 = true
  391. end
  392.  
  393. elseif type == 4 then
  394. fdu.BrickColor = BrickColor.new("Really black")
  395. du = Instance.new("Part")
  396. du.Parent = workspace[user]
  397. du.CFrame = main.CFrame + main.CFrame.lookVector*5
  398. du.Size = Vector3.new(1*3,1*3,2*3)
  399. du.formFactor = "Symmetric"
  400. du.Transparency = 0.5
  401. du.BrickColor = BrickColor.new("Really black")
  402. duck = Instance.new("SpecialMesh")
  403. duck.Parent = du
  404. duck.MeshType = "FileMesh"
  405. duck.MeshId = "http://www.roblox.com/asset/?id=14810664"
  406. duck.TextureId = ""
  407. duck.Scale = Vector3.new(1*3,1*3,1*3)
  408. s = Instance.new("BodyForce")
  409. s.Parent = du
  410. s.force = workspace[user].Torso.CFrame.lookVector * 160000
  411. wait(.1)
  412. fdu.BrickColor = BrickColor.new("Really red")
  413. du.Touched:connect(function(vic)
  414. if vic.Parent ~= workspace[user] then
  415. if vic.Parent.Humanoid then
  416. vic:Remove()
  417. else return
  418. end
  419. else return
  420. end
  421. end)
  422.  
  423. elseif type == 5 then
  424. fdu.BrickColor = BrickColor.new("New Yeller")
  425. du2 = Instance.new("Part")
  426. du2.Parent = workspace[user]
  427. du2.CFrame = main.CFrame + main.CFrame.lookVector*5
  428. du2.Size = Vector3.new(1*3,1*3,2*3)
  429. du2.formFactor = "Symmetric"
  430. duck2 = Instance.new("SpecialMesh")
  431. duck2.Parent = du2
  432. duck2.MeshType = "FileMesh"
  433. duck2.MeshId = "http://www.roblox.com/asset/?id=9419831"
  434. duck2.TextureId = "http://www.roblox.com/asset/?id=9419827"
  435. duck2.Scale = Vector3.new(1*3,1*3,1*3)
  436. s = Instance.new("BodyForce")
  437. s.Parent = du2
  438. s.force = workspace[user].Torso.CFrame.lookVector * 160000
  439. wait(.1)
  440. fdu.BrickColor = BrickColor.new("Really red")
  441. du2.Touched:connect(function(vic)
  442. if vic.Parent ~= workspace[user] then
  443. if vic.Parent.Humanoid then
  444. vic.Humanoid.Health = vic.Humanoid.MaxHealth
  445. else return
  446. end
  447. else return
  448. end
  449. end)
  450.  
  451. elseif type == 6 then
  452. if e6 == true then
  453. fdu.BrickColor = BrickColor.new("Really black")
  454. e6 = false
  455. du3 = Instance.new("Part")
  456. du3.Parent = workspace[user]
  457. du3.CFrame = workspace[user].Torso.CFrame + workspace[user].Torso.CFrame.lookVector*5
  458. du3.Size = Vector3.new(1*3,1*3,2*3)
  459. du3.formFactor = "Symmetric"
  460. duck3 = Instance.new("SpecialMesh")
  461. duck3.Parent = du3
  462. duck3.MeshType = "FileMesh"
  463. duck3.MeshId = "http://www.roblox.com/asset/?id=14810664"
  464. duck3.TextureId = "http://www.roblox.com/asset/?id=14810649"
  465. duck3.Scale = Vector3.new(0,0,0)
  466. firee = Instance.new("Fire")
  467. firee.Parent = du3
  468. s = Instance.new("BodyForce")
  469. s.Parent = du3
  470. s.force = workspace[user].Torso.CFrame.lookVector * 60000
  471. wait(.1)
  472. fdu.BrickColor = BrickColor.new("Really red")
  473. du3.Touched:connect(function(vic2)
  474. if vic2.Parent ~= workspace[user] then
  475. if vic2.Parent.Humanoid then
  476. vic2:Remove()
  477. else return
  478. end
  479. else return
  480. end
  481. end)
  482. du3.Anchored = true
  483. for i = 1,3,.1 do
  484. duck3.Scale = Vector3.new(i,i,i)
  485. wait(0.03)
  486. end
  487. du3.Anchored = false
  488. e6 = true
  489. end
  490.  
  491.  
  492. elseif type == 7 then
  493. if e7 == true then
  494. fdu.BrickColor = BrickColor.new("New Yeller")
  495. e7 = false
  496. edu = Instance.new("Part")
  497. edu.Parent = workspace[user]
  498. edu.CFrame = workspace[user].Head.CFrame + Vector3.new(0,100,0)
  499. edu.Size = Vector3.new(1*20,1*20,2*20)
  500. edu.formFactor = "Symmetric"
  501. edu.TopSurface = "Smooth"
  502. edu.BottomSurface = "Smooth"
  503. educk = Instance.new("SpecialMesh")
  504. educk.Parent = edu
  505. educk.MeshType = "FileMesh"
  506. educk.MeshId = "http://www.roblox.com/asset/?id=9419831"
  507. educk.TextureId = "http://www.roblox.com/asset/?id=9419827"
  508. educk.Scale = Vector3.new(50,50,50)
  509. edu.Anchored = true
  510. wait(.1)
  511. fdu.BrickColor = BrickColor.new("Really red")
  512. edu.Anchored = false
  513. wait(5)
  514. eex = Instance.new("Explosion")
  515. eex.Parent = workspace
  516. eex.Position = edu.Position
  517. eex.BlastPressure = 100000
  518. eex.BlastRadius = 50
  519. wait(1)
  520. edu:Remove()
  521. e7 = true
  522. end
  523.  
  524. elseif type == 8 then
  525.  
  526. fdu.BrickColor = BrickColor.new("Toothpaste")
  527. du4 = Instance.new("Part")
  528. du4.Parent = workspace[user]
  529. du4.CFrame = main.CFrame + main.CFrame.lookVector*5
  530. du4.Size = Vector3.new(1*3,1*3,2*3)
  531. du4.formFactor = "Symmetric"
  532. du4.Transparency = 0.5
  533. du4.BrickColor = BrickColor.new("Toothpaste")
  534. duck4 = Instance.new("SpecialMesh")
  535. duck4.Parent = du4
  536. duck4.MeshType = "FileMesh"
  537. duck4.MeshId = "http://www.roblox.com/asset/?id=9419831"
  538. duck4.Scale = Vector3.new(1*3,1*3,1*3)
  539. s = Instance.new("BodyForce")
  540. s.Parent = du4
  541. s.force = workspace[user].Torso.CFrame.lookVector * 160000
  542. wait(.1)
  543. fdu.BrickColor = BrickColor.new("Really red")
  544. du4.Touched:connect(function(vic3)
  545. if vic3.Parent ~= workspace[user] then
  546. if vic3.Parent.Humanoid then
  547. vic3.BrickColor = BrickColor.new("Toothpaste")
  548. vic3.Reflectance = 0.2
  549. vic3.Transparency = 0.5
  550. vic3.Anchored = true
  551. wait(5)
  552. vic3:Remove()
  553. else return
  554. end
  555. else return
  556. end
  557. end)
  558.  
  559.  
  560. elseif type == 9 then
  561.  
  562.  
  563. du5 = Instance.new("Part")
  564. du5.Parent = workspace[user]
  565. du5.CFrame = main.CFrame + main.CFrame.lookVector*5
  566. du5.Size = Vector3.new(1*3,1*3,2*3)
  567. du5.formFactor = "Symmetric"
  568. du5.TopSurface = "Smooth"
  569. du5.BottomSurface = "Smooth"
  570. du5.BrickColor = BrickColor.new("Dark stone grey")
  571. duck5 = Instance.new("SpecialMesh")
  572. duck5.Parent = du5
  573. duck5.MeshType = "FileMesh"
  574. duck5.MeshId = "http://www.roblox.com/asset/?id=9419831"
  575. duck5.Scale = Vector3.new(3,3,3)
  576. s = Instance.new("BodyForce")
  577. s.Parent = du5
  578. s.force = main.CFrame.lookVector * 30000
  579. du5.Touched:connect(function(hit)
  580. if hit.Parent.Name ~= user then
  581. if hit.Parent.Humanoid then
  582. hit.Parent.Humanoid.WalkSpeed = 5
  583. wait(5)
  584. hit.Parent.Humanoid.WalkSpeed = 16
  585. else return
  586. end
  587. else return
  588. end
  589. end)
  590.  
  591. end
  592. end)
  593. ----------------------------------------
  594. tool.Equipped:connect(function()
  595. weld = Instance.new("Weld")
  596. weld.Parent = fdu
  597. weld.Part0 = fdu
  598. weld.Part1 = main
  599. weld.C0 = CFrame.new(0,-2.5,0)
  600.  
  601. weld2 = Instance.new("Weld")
  602. weld2.Parent = c1
  603. weld2.Part0 = c1
  604. weld2.Part1 = main
  605. weld2.C0 = CFrame.new(0,-1.5,0)
  606.  
  607. weld3 = Instance.new("Weld")
  608. weld3.Parent = c2
  609. weld3.Part0 = c2
  610. weld3.Part1 = main
  611. weld3.C0 = CFrame.new(0,-1,0)
  612.  
  613. weld4 = Instance.new("Weld")
  614. weld4.Parent = c3
  615. weld4.Part0 = c3
  616. weld4.Part1 = main
  617. weld4.C0 = CFrame.new(0,1,0)
  618.  
  619. weld5 = Instance.new("Weld")
  620. weld5.Parent = c4
  621. weld5.Part0 = c4
  622. weld5.Part1 = main
  623. weld5.C0 = CFrame.new(0,1.5,0)
  624.  
  625. weld6 = Instance.new("Weld")
  626. weld6.Parent = c5
  627. weld6.Part0 = c5
  628. weld6.Part1 = main
  629. weld6.C0 = CFrame.new(0,2.5,0)
  630. end)
  631.  
  632. tool.Unequipped:connect(function()
  633. weld:Remove()
  634. weld2:Remove()
  635. weld3:Remove()
  636. weld4:Remove()
  637. weld5:Remove()
  638. weld6:Remove()
  639. end)
  640.  
  641. while true do
  642. for i = 1,10 do
  643. fduck.Scale = fduck.Scale + Vector3.new(0.01,0.01,0.01)
  644. wait(0.03)
  645. end
  646. for i = 1,10 do
  647. fduck.Scale = fduck.Scale - Vector3.new(0.01,0.01,0.01)
  648. wait(0.03)
  649. end
  650. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement