Advertisement
doryna2281337

Untitled

Aug 18th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.42 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. Tool0 = Instance.new("Tool")
  19. Part1 = Instance.new("Part")
  20. Decal2 = Instance.new("Decal")
  21. Decal3 = Instance.new("Decal")
  22. Decal4 = Instance.new("Decal")
  23. Decal5 = Instance.new("Decal")
  24. Decal6 = Instance.new("Decal")
  25. Decal7 = Instance.new("Decal")
  26. SpecialMesh8 = Instance.new("SpecialMesh")
  27. Sound9 = Instance.new("Sound")
  28. LocalScript10 = Instance.new("LocalScript")
  29. LocalScript11 = Instance.new("LocalScript")
  30. HopperBin12 = Instance.new("HopperBin")
  31. LocalScript13 = Instance.new("LocalScript")
  32. BlockMesh14 = Instance.new("BlockMesh")
  33. Script15 = Instance.new("Script")
  34. Script16 = Instance.new("Script")
  35. HopperBin17 = Instance.new("HopperBin")
  36. LocalScript18 = Instance.new("LocalScript")
  37. HopperBin19 = Instance.new("HopperBin")
  38. LocalScript20 = Instance.new("LocalScript")
  39. BlockMesh21 = Instance.new("BlockMesh")
  40. Script22 = Instance.new("Script")
  41. Script23 = Instance.new("Script")
  42. Script24 = Instance.new("Script")
  43. StringValue25 = Instance.new("StringValue")
  44. Part26 = Instance.new("Part")
  45. SpecialMesh27 = Instance.new("SpecialMesh")
  46. Part28 = Instance.new("Part")
  47. SpecialMesh29 = Instance.new("SpecialMesh")
  48. Part30 = Instance.new("Part")
  49. SpecialMesh31 = Instance.new("SpecialMesh")
  50. Tool0.Name = "(Click to eat) Gomu Gomu no mi"
  51. Tool0.Parent = mas
  52. Tool0.Grip = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  53. Tool0.GripForward = Vector3.new(1, -0, -0)
  54. Tool0.GripRight = Vector3.new(0, 0, 1)
  55. Part1.Name = "Handle"
  56. Part1.Parent = Tool0
  57. Part1.CFrame = CFrame.new(48.749485, 0.503547013, 19.1430969, -0.999999523, -0.000978620723, 1.05401614e-05, -0.000978537253, 0.999980748, 0.00612961594, -1.66846348e-05, 0.0061296029, -0.999981225)
  58. Part1.Orientation = Vector3.new(-0.349999994, 180, -0.0599999987)
  59. Part1.Position = Vector3.new(48.749485, 0.503547013, 19.1430969)
  60. Part1.Rotation = Vector3.new(-179.649994, 0, 179.940002)
  61. Part1.Color = Color3.new(0.972549, 0.85098, 0.427451)
  62. Part1.Size = Vector3.new(1, 1, 1)
  63. Part1.BottomSurface = Enum.SurfaceType.Smooth
  64. Part1.BrickColor = BrickColor.new("Daisy orange")
  65. Part1.Material = Enum.Material.SmoothPlastic
  66. Part1.TopSurface = Enum.SurfaceType.Smooth
  67. Part1.brickColor = BrickColor.new("Daisy orange")
  68. Part1.FormFactor = Enum.FormFactor.Symmetric
  69. Part1.formFactor = Enum.FormFactor.Symmetric
  70. Decal2.Parent = Part1
  71. Decal2.Texture = "rbxassetid://114369508"
  72. Decal2.Transparency = 0.5
  73. Decal3.Parent = Part1
  74. Decal3.Texture = "rbxassetid://114369508"
  75. Decal3.Transparency = 0.5
  76. Decal3.Face = Enum.NormalId.Left
  77. Decal4.Parent = Part1
  78. Decal4.Texture = "rbxassetid://114369508"
  79. Decal4.Transparency = 0.5
  80. Decal4.Face = Enum.NormalId.Back
  81. Decal5.Parent = Part1
  82. Decal5.Texture = "rbxassetid://114369508"
  83. Decal5.Transparency = 0.5
  84. Decal5.Face = Enum.NormalId.Right
  85. Decal6.Parent = Part1
  86. Decal6.Texture = "rbxassetid://114369508"
  87. Decal6.Transparency = 0.5
  88. Decal6.Face = Enum.NormalId.Top
  89. Decal7.Parent = Part1
  90. Decal7.Texture = "rbxassetid://114369508"
  91. Decal7.Transparency = 0.5
  92. Decal7.Face = Enum.NormalId.Bottom
  93. SpecialMesh8.Parent = Part1
  94. SpecialMesh8.Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995)
  95. SpecialMesh8.MeshType = Enum.MeshType.Sphere
  96. Sound9.Name = "Eat"
  97. Sound9.Parent = Part1
  98. Sound9.Looped = true
  99. Sound9.Pitch = 1.1000000238419
  100. Sound9.PlaybackSpeed = 1.1000000238419
  101. Sound9.SoundId = "rbxassetid://161190414"
  102. LocalScript10.Name = "InstaWeld"
  103. LocalScript10.Parent = Tool0
  104. table.insert(cors,sandbox(LocalScript10,function()
  105. local currentwelds = {}
  106.  
  107. function Weld(x,y)
  108. local W = Instance.new("Weld")
  109. W.Part0 = x
  110. W.Part1 = y
  111. local CJ = CFrame.new(x.Position)
  112. local C0 = x.CFrame:inverse()*CJ
  113. local C1 = y.CFrame:inverse()*CJ
  114. W.C0 = C0
  115. W.C1 = C1
  116. W.Parent = x
  117. currentwelds[#currentwelds+1] = W
  118. end
  119.  
  120. function Get(A)
  121. if A:IsA("BasePart") then
  122. Weld(script.Parent.Handle, A)
  123. A.Anchored = false
  124. else
  125. local C = A:GetChildren()
  126. for i=1, #C do
  127. Get(C[i])
  128. end
  129. end
  130. end
  131.  
  132. function Finale()
  133. currentwelds = {}
  134. Get(script.Parent)
  135. coroutine.resume(coroutine.create(function()
  136. wait(0.1)
  137. local toolparts = script.Parent:GetChildren()
  138. for h = 1, #toolparts do
  139. local c = toolparts[h]:GetChildren()
  140. for j = 1, #c do
  141. if c[j]:IsA("Weld") then
  142. local stop = false
  143. for k = 1, #currentwelds do
  144. if c[j] == currentwelds[k] then
  145. stop = true
  146. end
  147. end
  148. if not stop then
  149. c[j]:Destroy()
  150. end
  151. end
  152. end
  153. end
  154. end))
  155. end
  156.  
  157. script.Parent.Equipped:connect(Finale)
  158. script.Parent.Unequipped:connect(Finale)
  159. Finale()
  160. end))
  161. LocalScript11.Name = "EatScript"
  162. LocalScript11.Parent = Tool0
  163. table.insert(cors,sandbox(LocalScript11,function()
  164. wait()
  165.  
  166. local tool = script.Parent
  167. local player = owner
  168.  
  169. defaultholdingpos = tool.GripPos
  170. eaten = false
  171. equipped = false
  172. cancelled = false
  173. tool.Equipped:connect(function()
  174. equipped = true
  175. script.Parent.Activated:connect(function()
  176. if not eaten then
  177. cancelled = false
  178. tool.GripPos = Vector3.new(0.8, -0.5, 1.5)
  179. tool.Handle.Eat:Play()
  180. wait(1.4)
  181. tool.Handle.Eat:Stop()
  182. if equipped and not cancelled then
  183. local currentsavedgear = player:FindFirstChild("StarterGear"):GetChildren()
  184. local hasdf = false
  185. if #currentsavedgear > 0 then
  186. for i = 1, #currentsavedgear do
  187. if currentsavedgear[i]:FindFirstChild("DevilFruitAbility") then
  188. currentsavedgear[i]:Destroy()
  189. hasdf = true
  190. end
  191. end
  192. end
  193. if not hasdf then
  194. local dftools = script:GetChildren()
  195. for i = 1, #dftools do
  196. local df_tag = Instance.new("StringValue")
  197. df_tag.Name = "DevilFruitAbility"
  198. df_tag.Value = tool.DevilFruitType.Value
  199. df_tag.Parent = dftools[i]
  200. dftools[i]:clone().Parent = player:FindFirstChild("Backpack")
  201. dftools[i]:clone().Parent = player:FindFirstChild("StarterGear")
  202. end
  203. tool:Destroy()
  204. elseif hasdf then
  205. if player.Character then
  206. if player.Character:FindFirstChild("Humanoid") then
  207. player.Character:BreakJoints()
  208. player.Character:FindFirstChild("Humanoid").Health = 0
  209. end
  210. end
  211. tool:Destroy()
  212. end
  213. end
  214. end
  215. end)
  216. end)
  217.  
  218. tool.Unequipped:connect(function()
  219. tool.Handle.Eat:Stop()
  220. cancelled = true
  221. equipped = false
  222. if not eaten then
  223. tool.GripPos = defaultholdingpos
  224. end
  225. end)
  226. end))
  227. HopperBin12.Name = "Pistol"
  228. HopperBin12.Parent = LocalScript11
  229. LocalScript13.Name = "Normal"
  230. LocalScript13.Parent = HopperBin12
  231. table.insert(cors,sandbox(LocalScript13,function()
  232. COOLDOWN = 1
  233.  
  234. MAX_VELOCITY = 475
  235. MIN_VELOCITY = 400
  236.  
  237. AUTOFIRE = false
  238.  
  239. SPREAD = 2
  240. ORIGIN_SPREAD = 0
  241. LOCK_FORWARD = false
  242.  
  243. ANTI_GRAVITY = 1
  244.  
  245. FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731"
  246.  
  247. DESPAWN_TIME = 1
  248.  
  249.  
  250. wait(1)
  251. ------------------------------
  252. missile = Instance.new("Part")
  253. missile.Name = "Gomu"
  254. missile.Transparency = 0
  255. missile.Reflectance = 0
  256. missile.CanCollide = false
  257. missile.Shape = "Block"
  258. missile.FormFactor = "Custom"
  259. missile.Size = Vector3.new(2, 2, 2)
  260. missile.Elasticity = 0
  261. missile.TopSurface = 0
  262. missile.BottomSurface = 0
  263.  
  264. while script:FindFirstChild("Mesh") == nil do wait() end
  265. script.Mesh:clone().Parent = missile
  266.  
  267. force = Instance.new("BodyForce")
  268. force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY)
  269. force.Parent = missile
  270.  
  271. scriptName = "ArrowScript"
  272. while script:FindFirstChild(scriptName) == nil do wait() end
  273. script:FindFirstChild(scriptName):clone().Parent = missile
  274.  
  275. ------------------------------
  276.  
  277. wait()
  278. Tool = script.Parent
  279. player = owner
  280. while player.Character == nil do wait() end
  281. char = player.Character
  282.  
  283. function hidePart(part)
  284. if part:FindFirstChild("AttackHide") == nil then
  285. local hide = Instance.new("SpecialMesh")
  286. hide.Name = "AttackHide"
  287. hide.MeshType = "FileMesh"
  288. hide.Scale = Vector3.new(0, 0, 0)
  289. hide.Parent = part
  290. game.Debris:AddItem(hide, DESPAWN_TIME/2)
  291. end
  292. end
  293.  
  294. shooting = false
  295. function fire(v)
  296. if choosehand == 1 then
  297. choosehand = 2
  298. arm = char:FindFirstChild("Right Arm")
  299. else
  300. choosehand = 1
  301. arm = char:FindFirstChild("Left Arm")
  302. end
  303. if arm == nil then return end
  304. hidePart(arm)
  305.  
  306. if not LOCK_FORWARD then
  307. v_spreadx = math.random(-SPREAD, SPREAD)
  308. v_spready = math.random(-SPREAD, SPREAD)
  309. v_spreadz = math.random(-SPREAD, SPREAD)
  310. v = v + Vector3.new(v_spreadx, v_spready, v_spreadz)
  311. v = (v - arm.Position).unit
  312. else
  313. v = char:FindFirstChild("Torso").CFrame.lookVector
  314. end
  315.  
  316. o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  317. o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  318. o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  319. local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz)
  320. spawnPos = spawnPos + (v * 1)
  321.  
  322. shot = missile:clone()
  323. shot.BrickColor = arm.BrickColor
  324. shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY)
  325. local launch = spawnPos + 2 * v
  326. shot.CFrame = CFrame.new(launch, launch + v)
  327.  
  328. local creator_tag = Instance.new("ObjectValue")
  329. creator_tag.Value = player
  330. creator_tag.Name = "creator"
  331. creator_tag.Parent = shot
  332.  
  333. local firesound = Instance.new("Sound")
  334. firesound.Name = "FiredSound"
  335. firesound.SoundId = FIRE_SOUND
  336. firesound.Volume = 1
  337. firesound.Pitch = math.random(8, 14)/10
  338. firesound.Parent = shot
  339.  
  340. shot.Parent = game.Workspace
  341. game.Debris:AddItem(shot, DESPAWN_TIME)
  342. shot:FindFirstChild(scriptName).Disabled = false
  343. end
  344.  
  345.  
  346. enabled = true
  347. gatlingmode = false
  348.  
  349. function onButtonUp()
  350. shooting = false
  351. end
  352.  
  353. function onDeselect()
  354. stopped = true
  355. end
  356.  
  357. function gatlingOFF()
  358. gatlingmode = false -- its not gatling ya know
  359. COOLDOWN = 2
  360. MAX_VELOCITY = 250
  361. MIN_VELOCITY = 200
  362. AUTOFIRE = false
  363. SPREAD = 3
  364. ORIGIN_SPREAD = 3
  365. DESPAWN_TIME = 0.9
  366. missile.Transparency = 0.4
  367. LOCK_FORWARD = true
  368. end
  369.  
  370. function gatlingON()
  371. gatlingmode = true -- its one shot
  372. COOLDOWN = 2
  373. MAX_VELOCITY = 475
  374. MIN_VELOCITY = 400
  375. AUTOFIRE = false
  376. SPREAD = 2
  377. ORIGIN_SPREAD = 0
  378. DESPAWN_TIME = 1
  379. missile.Transparency = 0
  380. LOCK_FORWARD = false
  381. end
  382.  
  383. function onSelected(mouse)
  384. gatlingmode = false
  385. gatlingOFF()
  386. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  387. mouse.Button1Down:connect(function()
  388.  
  389. if not enabled then return end
  390. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  391. enabled = false
  392. shooting = true
  393. stopped = false
  394. while shooting do
  395. hum = char:FindFirstChild("Humanoid")
  396. if hum == nil then else
  397. if hum.Health <= 0 then shooting = false end
  398. fire(mouse.Hit.p)
  399.  
  400. wait(COOLDOWN)
  401. if not AUTOFIRE then
  402. shooting = false
  403. end
  404. end
  405. if AUTOFIRE then
  406. wait(COOLDOWN)
  407. end
  408. if mouse then
  409. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  410. end
  411. enabled = true
  412. end
  413. end)
  414. mouse.Button1Up:connect(function() onButtonUp() end)
  415. mouse.KeyDown:connect(function(key2)
  416. local key=string.byte(key2)
  417. if key==string.byte("g") then
  418. if gatlingmode == false then
  419. gatlingON()
  420. else
  421. gatlingOFF()
  422. end
  423. end
  424. end)
  425. end
  426.  
  427. script.Parent.Selected:connect(onSelected)
  428. script.Parent.Deselected:connect(onDeselected)
  429.  
  430.  
  431.  
  432.  
  433. end))
  434. BlockMesh14.Parent = LocalScript13
  435. Script15.Name = "Stretch"
  436. Script15.Parent = BlockMesh14
  437. table.insert(cors,sandbox(Script15,function()
  438. local missile = script.Parent.Parent
  439. if missile:IsA("Part") then
  440. origPos = missile.Position
  441. m = script.Parent
  442. for i = 1, 10 do
  443. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8
  444. dist = (origPos - missile.Position).magnitude
  445. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  446. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  447. wait()
  448. end
  449. wait(0.1)
  450. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6
  451. while true do
  452. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15
  453. dist = (origPos - missile.Position).magnitude
  454. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  455. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  456. wait()
  457. end
  458. end
  459. end))
  460. Script16.Name = "ArrowScript"
  461. Script16.Parent = LocalScript13
  462. table.insert(cors,sandbox(Script16,function()
  463. arrow = script.Parent
  464.  
  465. local hitsound = Instance.new("Sound")
  466. hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113"
  467. hitsound.Volume = 0.3
  468. hitsound.Pitch = math.random(11, 17)/10
  469. hitsound.Parent = arrow
  470.  
  471. if arrow:FindFirstChild("creator") == nil then
  472. arrow:WaitForChild("creator")
  473. end
  474.  
  475. damage = 25
  476. if arrow.Transparency ~= 0 then
  477. damage = 25
  478. end
  479.  
  480. local tag = arrow:FindFirstChild("creator")
  481. local ourguy = tag.Value.Character:FindFirstChild("Humanoid")
  482.  
  483.  
  484. function onTouched(hit)
  485. humanoid = nil
  486. if tag ~= nil and ourguy ~= nil then
  487. if hit.Parent == nil then return end
  488. if hit.Parent:findFirstChild("Humanoid") then
  489. humanoid = hit.Parent:findFirstChild("Humanoid")
  490. elseif hit.Parent.Parent:findFirstChild("Humanoid") then
  491. humanoid = hit.Parent.Parent:findFirstChild("Humanoid")
  492. end
  493. if humanoid ~= nil then
  494. if humanoid ~= ourguy then
  495. stop = false
  496. local ph = hit.Parent:FindFirstChild("PunchHurt")
  497. if (ph ~= nil) then
  498. if ph.Value == false then
  499. stop = true
  500. end
  501. end
  502. if stop == false then
  503. hitsound:Play()
  504. tagHumanoid(humanoid, vPlayer)
  505. humanoid:TakeDamage(damage)
  506. arrow:Destroy()
  507. end
  508. end
  509. elseif hit.Anchored == true and hit.CanCollide == true then
  510. arrow:Destroy()
  511. end
  512. end
  513. end
  514.  
  515. function tagHumanoid(humanoid)
  516. local tag = arrow:findFirstChild("creator")
  517. if tag ~= nil then
  518. local new_tag = tag:clone()
  519. new_tag.Parent = humanoid
  520. game.Debris:AddItem(new_tag, 1)
  521. end
  522. end
  523.  
  524. arrow.Touched:connect(onTouched)
  525.  
  526. wait()
  527. if arrow:FindFirstChild("FiredSound") then
  528. arrow:FindFirstChild("FiredSound"):Play()
  529. end
  530.  
  531. wait(10)
  532. arrow:Destroy()
  533. end))
  534. Script16.Disabled = true
  535. HopperBin17.Name = "Gear Second"
  536. HopperBin17.Parent = LocalScript11
  537. LocalScript18.Parent = HopperBin17
  538. table.insert(cors,sandbox(LocalScript18,function()
  539. bin = script.Parent
  540. player = script.Parent.Parent.Parent
  541. me = script.Parent.Parent.Parent
  542.  
  543. enabled = true
  544.  
  545. function Talk(msg)
  546. game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Blue)
  547. end
  548.  
  549. function onButton1Down(mouse)
  550. if not enabled then
  551. return
  552. end
  553.  
  554. local player = owner
  555. if player == nil then return end
  556.  
  557. enabled = false
  558. RightShoulder = me.Character.Torso["Right Shoulder"]
  559. LeftShoulder = me.Character.Torso["Left Shoulder"]
  560. Run = game:GetService("RunService")
  561. for i = 1, 3 do
  562. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 1)
  563. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -1)
  564. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 1.1, 0)
  565. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -1.1, 0)
  566. Run.Stepped:wait(0.005)
  567. end
  568. -------------------------------------------------------------------------------
  569.  
  570. --EDIT HERE--
  571. Talk("Gear Second!")-- you can change Gear Second or Gear 2nd
  572. gg = Instance.new("Part")
  573. gg.Anchored = true
  574. gg.Shape = "Ball" --THIS ball will appear when transforming
  575. gg.TopSurface = "Smooth"
  576. gg.BottomSurface = "Smooth"
  577. gg.BrickColor = BrickColor.new("Persimmon")--color of the bode when transforming
  578. gg.CanCollide = false
  579. gg.Parent = Workspace
  580. gg.Size = Vector3.new(6, 6, 6)
  581. p = Instance.new("PointLight", gg)
  582. p.Brightness = 10
  583. p.Range = 10
  584. p.Color = Color3.new(255, 0, 0)
  585. gg.CFrame = me.Character.Torso.CFrame*CFrame.new(0, 0, 0)
  586. qq = Instance.new("SpecialMesh")
  587. qq.Parent = gg
  588. qq.Scale = Vector3.new(6, 6, 6)
  589. qq.MeshType = ("Sphere")
  590. for i = 1,6 do
  591. qq.Scale = qq.Scale -Vector3.new(1 ,1 ,1)
  592. wait(0.01)
  593. end
  594. gg:remove()
  595. Hardening = me.Character["Body Colors"]
  596. Hardening.LeftArmColor = BrickColor.new("Persimmon") --color
  597. Hardening.RightArmColor = BrickColor.new("Persimmon")--of
  598. Hardening.RightLegColor = BrickColor.new("Persimmon")--the
  599. Hardening.LeftLegColor = BrickColor.new("Persimmon")--body
  600. Hardening.TorsoColor = BrickColor.new("Persimmon")--when
  601. Hardening. HeadColor = BrickColor.new("Persimmon")--transforming
  602. j = me.Character.Head
  603. k = me.Character.Torso
  604. q = me.Character["Left Arm"]
  605. w = me.Character["Left Leg"]
  606. e = me.Character["Right Arm"]
  607. r = me.Character["Right Leg"]
  608.  
  609. me.Character.Humanoid.MaxHealth = 500-- 500 - 550 Health of human when transformed
  610. me.Character.Humanoid.Health = 500----- SAME ONE
  611. me.Character.Humanoid.WalkSpeed = 0
  612. wait(1.5)
  613. me.Character.Humanoid.WalkSpeed = 20 --edit 17 - 100 it will increase speed
  614.  
  615.  
  616.  
  617.  
  618. for i = 1, 3 do
  619. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 1.1, 0)
  620. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -1.1, 0)
  621. LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1)
  622. RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 1)
  623. Run.Stepped:wait(0.01)
  624. end
  625. wait(20)
  626. enabled = true
  627. end
  628.  
  629.  
  630. enabled = true
  631. function onS(mouse)
  632. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  633. end
  634. bin.Selected:connect(onS)
  635.  
  636.  
  637. end))
  638. HopperBin19.Name = "Gatling Gun"
  639. HopperBin19.Parent = LocalScript11
  640. LocalScript20.Name = "Gatling"
  641. LocalScript20.Parent = HopperBin19
  642. table.insert(cors,sandbox(LocalScript20,function()
  643. COOLDOWN = 2
  644.  
  645. MAX_VELOCITY = 475
  646. MIN_VELOCITY = 400
  647.  
  648. AUTOFIRE = false
  649.  
  650. SPREAD = 2
  651. ORIGIN_SPREAD = 0
  652. LOCK_FORWARD = false
  653.  
  654. ANTI_GRAVITY = 1
  655.  
  656. FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731"
  657.  
  658. DESPAWN_TIME = 1
  659.  
  660.  
  661. wait(1)
  662. ------------------------------
  663. missile = Instance.new("Part")
  664. missile.Name = "Gomu"
  665. missile.Transparency = 0
  666. missile.Reflectance = 0
  667. missile.CanCollide = false
  668. missile.Shape = "Block"
  669. missile.FormFactor = "Custom"
  670. missile.Size = Vector3.new(2, 2, 2)
  671. missile.Elasticity = 0
  672. missile.TopSurface = 0
  673. missile.BottomSurface = 0
  674.  
  675. while script:FindFirstChild("Mesh") == nil do wait() end
  676. script.Mesh:clone().Parent = missile
  677.  
  678. force = Instance.new("BodyForce")
  679. force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY)
  680. force.Parent = missile
  681.  
  682. scriptName = "ArrowScript"
  683. while script:FindFirstChild(scriptName) == nil do wait() end
  684. script:FindFirstChild(scriptName):clone().Parent = missile
  685.  
  686. ------------------------------
  687.  
  688. wait()
  689. Tool = script.Parent
  690. player = owner
  691. while player.Character == nil do wait() end
  692. char = player.Character
  693.  
  694. function hidePart(part)
  695. if part:FindFirstChild("AttackHide") == nil then
  696. local hide = Instance.new("SpecialMesh")
  697. hide.Name = "AttackHide"
  698. hide.MeshType = "FileMesh"
  699. hide.Scale = Vector3.new(0, 0, 0)
  700. hide.Parent = part
  701. game.Debris:AddItem(hide, DESPAWN_TIME/2)
  702. end
  703. end
  704.  
  705. shooting = false
  706. function fire(v)
  707. if choosehand == 1 then
  708. choosehand = 2
  709. arm = char:FindFirstChild("Right Arm")
  710. else
  711. choosehand = 1
  712. arm = char:FindFirstChild("Left Arm")
  713. end
  714. if arm == nil then return end
  715. hidePart(arm)
  716.  
  717. if not LOCK_FORWARD then
  718. v_spreadx = math.random(-SPREAD, SPREAD)
  719. v_spready = math.random(-SPREAD, SPREAD)
  720. v_spreadz = math.random(-SPREAD, SPREAD)
  721. v = v + Vector3.new(v_spreadx, v_spready, v_spreadz)
  722. v = (v - arm.Position).unit
  723. else
  724. v = char:FindFirstChild("Torso").CFrame.lookVector
  725. end
  726.  
  727. o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  728. o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  729. o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
  730. local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz)
  731. spawnPos = spawnPos + (v * 1)
  732.  
  733. shot = missile:clone()
  734. shot.BrickColor = arm.BrickColor
  735. shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY)
  736. local launch = spawnPos + 2 * v
  737. shot.CFrame = CFrame.new(launch, launch + v)
  738.  
  739. local creator_tag = Instance.new("ObjectValue")
  740. creator_tag.Value = player
  741. creator_tag.Name = "creator"
  742. creator_tag.Parent = shot
  743.  
  744. local firesound = Instance.new("Sound")
  745. firesound.Name = "FiredSound"
  746. firesound.SoundId = FIRE_SOUND
  747. firesound.Volume = 1
  748. firesound.Pitch = math.random(8, 14)/10
  749. firesound.Parent = shot
  750.  
  751. shot.Parent = game.Workspace
  752. game.Debris:AddItem(shot, DESPAWN_TIME)
  753. shot:FindFirstChild(scriptName).Disabled = false
  754. end
  755.  
  756.  
  757. enabled = true
  758. gatlingmode = false
  759.  
  760. function onButtonUp()
  761. shooting = false
  762. end
  763.  
  764. function onDeselect()
  765. stopped = true
  766. end
  767.  
  768. function gatlingON()
  769. gatlingmode = true --if gatling mode
  770. COOLDOWN = 0
  771. MAX_VELOCITY = 250
  772. MIN_VELOCITY = 200
  773. AUTOFIRE = true --it means if you click one time it will repeat
  774. SPREAD = 3
  775. ORIGIN_SPREAD = 3
  776. DESPAWN_TIME = 0.9
  777. missile.Transparency = 0.4
  778. LOCK_FORWARD = true --change it to false if you want to back attack
  779. end
  780.  
  781. function gatlingOFF()
  782. gatlingmode = false -- if one shot mode
  783. COOLDOWN = 0.4
  784. MAX_VELOCITY = 475
  785. MIN_VELOCITY = 400
  786. AUTOFIRE = true --it means if you click one time it will repeat
  787. SPREAD = 2
  788. ORIGIN_SPREAD = 0
  789. DESPAWN_TIME = 1
  790. missile.Transparency = 0
  791. LOCK_FORWARD = false
  792. end
  793.  
  794. function onSelected(mouse)
  795. gatlingmode = true
  796. gatlingON()
  797. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  798. mouse.Button1Down:connect(function()
  799.  
  800. if not enabled then return end
  801. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  802. enabled = false
  803. shooting = true
  804. stopped = false
  805. while shooting do
  806. hum = char:FindFirstChild("Humanoid")
  807. if hum == nil then else
  808. if hum.Health <= 0 then shooting = false end
  809. fire(mouse.Hit.p)
  810.  
  811. wait(COOLDOWN)
  812. if not AUTOFIRE then
  813. shooting = false
  814. end
  815. end
  816. if AUTOFIRE then
  817. wait(COOLDOWN)
  818. end
  819. if mouse then
  820. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  821. end
  822. enabled = true
  823. end
  824. end)
  825. mouse.Button1Up:connect(function() onButtonUp() end)
  826. mouse.KeyDown:connect(function(key2)
  827. local key=string.byte(key2)
  828. if key==string.byte("g") then
  829. if gatlingmode == false then
  830. gatlingON()
  831. else
  832. gatlingOFF()
  833. end
  834. end
  835. end)
  836. end
  837.  
  838. script.Parent.Selected:connect(onSelected)
  839. script.Parent.Deselected:connect(onDeselected)
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846. end))
  847. BlockMesh21.Parent = LocalScript20
  848. Script22.Name = "Stretch"
  849. Script22.Parent = BlockMesh21
  850. table.insert(cors,sandbox(Script22,function()
  851. local missile = script.Parent.Parent
  852. if missile:IsA("Part") then
  853. origPos = missile.Position
  854. m = script.Parent
  855. for i = 1, 10 do
  856. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8
  857. dist = (origPos - missile.Position).magnitude
  858. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  859. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  860. wait()
  861. end
  862. wait(0.1)
  863. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6
  864. while true do
  865. script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15
  866. dist = (origPos - missile.Position).magnitude
  867. m.Scale = Vector3.new(0.5, 0.5, dist/2)
  868. m.Offset = Vector3.new(0.5, 0.5, dist/2)
  869. wait()
  870. end
  871. end
  872. end))
  873. Script23.Name = "ArrowScript"
  874. Script23.Parent = LocalScript20
  875. table.insert(cors,sandbox(Script23,function()
  876. arrow = script.Parent
  877.  
  878. local hitsound = Instance.new("Sound")
  879. hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113"
  880. hitsound.Volume = 0.3
  881. hitsound.Pitch = math.random(11, 17)/10
  882. hitsound.Parent = arrow
  883.  
  884. if arrow:FindFirstChild("creator") == nil then
  885. arrow:WaitForChild("creator")
  886. end
  887.  
  888. damage = 40
  889. if arrow.Transparency ~= 0 then
  890. damage = 40
  891. end
  892.  
  893. local tag = arrow:FindFirstChild("creator")
  894. local ourguy = tag.Value.Character:FindFirstChild("Humanoid")
  895.  
  896.  
  897. function onTouched(hit)
  898. humanoid = nil
  899. if tag ~= nil and ourguy ~= nil then
  900. if hit.Parent == nil then return end
  901. if hit.Parent:findFirstChild("Humanoid") then
  902. humanoid = hit.Parent:findFirstChild("Humanoid")
  903. elseif hit.Parent.Parent:findFirstChild("Humanoid") then
  904. humanoid = hit.Parent.Parent:findFirstChild("Humanoid")
  905. end
  906. if humanoid ~= nil then
  907. if humanoid ~= ourguy then
  908. stop = false
  909. local ph = hit.Parent:FindFirstChild("PunchHurt")
  910. if (ph ~= nil) then
  911. if ph.Value == false then
  912. stop = true
  913. end
  914. end
  915. if stop == false then
  916. hitsound:Play()
  917. tagHumanoid(humanoid, vPlayer)
  918. humanoid:TakeDamage(damage)
  919. arrow:Destroy()
  920. end
  921. end
  922. elseif hit.Anchored == true and hit.CanCollide == true then
  923. arrow:Destroy()
  924. end
  925. end
  926. end
  927.  
  928. function tagHumanoid(humanoid)
  929. local tag = arrow:findFirstChild("creator")
  930. if tag ~= nil then
  931. local new_tag = tag:clone()
  932. new_tag.Parent = humanoid
  933. game.Debris:AddItem(new_tag, 1)
  934. end
  935. end
  936.  
  937. arrow.Touched:connect(onTouched)
  938.  
  939. wait()
  940. if arrow:FindFirstChild("FiredSound") then
  941. arrow:FindFirstChild("FiredSound"):Play()
  942. end
  943.  
  944. wait(10)
  945. arrow:Destroy()
  946. end))
  947. Script23.Disabled = true
  948. Script24.Name = "DevilFruitAttributes"
  949. Script24.Parent = LocalScript11
  950. table.insert(cors,sandbox(Script24,function()
  951. wait()
  952. if script.Parent then
  953. if not script.Parent:IsA("Script") or not script.Parent.Name == "StarterGear" then
  954. local debris = game:GetService("Debris")
  955. local backpack = script.Parent
  956. local player = backpack.Parent
  957. while player.Character == nil do wait() end
  958. local character = player.Character
  959. if character then
  960. while character:FindFirstChild("Humanoid") == nil do wait() end
  961. local hum = character:FindFirstChild("Humanoid")
  962.  
  963. -- Logia
  964. local charparts = character:GetChildren()
  965. for i = 1, #charparts do
  966. local charpart = charparts[i]
  967. if charpart:IsA("BasePart") then
  968. charpart.Touched:connect(function(hit)
  969. if charpart:FindFirstChild("Hide") then return end
  970. local stop = true
  971. if hit ~= nil then
  972. if hit.Parent ~= nil then
  973. if hit:FindFirstChild("creator") or hit.Parent:FindFirstChild("creator") then
  974. stop = false
  975. elseif hit.Parent:FindFirstChild("Humanoid") then
  976. if hit.Parent:FindFirstChild("Humanoid") ~= hum then
  977. stop = false
  978. end
  979. end
  980. end
  981. end
  982. if stop then return end
  983. local hidemesh = Instance.new("SpecialMesh")
  984. hidemesh.Name = "Hide"
  985. hidemesh.MeshType = "FileMesh"
  986. hidemesh.MeshId = ""
  987. hidemesh.Scale = Vector3.new(0, 0, 0)
  988. hidemesh.Parent = charpart
  989. debris:AddItem(hidemesh, 1.5)
  990.  
  991. local bodyeffect = Instance.new("Part")
  992. bodyeffect.Name = "BodyEffect"
  993. bodyeffect.Transparency = 0.3
  994. bodyeffect.CanCollide = false
  995. bodyeffect.FormFactor = "Custom"
  996. bodyeffect.Size = Vector3.new(0.2, 0.2, 0.2)
  997. bodyeffect.TopSurface = "Smooth"
  998. bodyeffect.BottomSurface = "Smooth"
  999. bodyeffect.CFrame = charpart.CFrame
  1000.  
  1001. local mesh = Instance.new("SpecialMesh")
  1002. mesh.MeshId = "http://www.roblox.com/asset?id=165709404"
  1003. mesh.TextureId = "http://www.roblox.com/asset?id=165709478"
  1004. mesh.Scale = Vector3.new(3, 3, 3)
  1005. mesh.Parent = bodyeffect
  1006.  
  1007. local sound = Instance.new("Sound")
  1008. sound.SoundId = "http://www.roblox.com/asset/?id=31759626"
  1009. sound.Volume = 0.3
  1010. sound.Pitch = math.random(9, 11)/10
  1011. sound.Parent = bodyeffect
  1012.  
  1013. local light = Instance.new("PointLight")
  1014. light.Range = 5
  1015. light.Color = Color3.new(1, 1, 0)
  1016. light.Parent = bodyeffect
  1017.  
  1018. bodyeffect.Parent = charpart.Parent
  1019.  
  1020. sound:Play()
  1021.  
  1022. local weld = Instance.new("ManualWeld")
  1023. weld.Part0 = bodyeffect
  1024. weld.Part1 = charpart
  1025. weld.C1 = charpart.CFrame:inverse() * bodyeffect.CFrame
  1026. weld.Parent = bodyeffect
  1027.  
  1028. debris:AddItem(bodyeffect, 1.5)
  1029. end)
  1030. end
  1031. end
  1032. end
  1033. end
  1034. end
  1035. end))
  1036. StringValue25.Name = "DevilFruitType"
  1037. StringValue25.Parent = Tool0
  1038. StringValue25.Value = "Rubber"
  1039. Part26.Name = "Leafs"
  1040. Part26.Parent = Tool0
  1041. Part26.CFrame = CFrame.new(48.6795959, 1.326491, 19.1532822, -4.4091145e-08, -7.30506144e-08, -1, 1, -4.51691449e-08, -4.36030163e-08, -4.23751771e-08, -1, -7.30506144e-08)
  1042. Part26.Orientation = Vector3.new(0, -90, 90)
  1043. Part26.Position = Vector3.new(48.6795959, 1.326491, 19.1532822)
  1044. Part26.Rotation = Vector3.new(-90, -90, 0)
  1045. Part26.Color = Color3.new(1, 0.34902, 0.34902)
  1046. Part26.Size = Vector3.new(0.410000086, 0.329999983, 0.200000048)
  1047. Part26.Anchored = true
  1048. Part26.BrickColor = BrickColor.new("Persimmon")
  1049. Part26.Material = Enum.Material.SmoothPlastic
  1050. Part26.brickColor = BrickColor.new("Persimmon")
  1051. Part26.FormFactor = Enum.FormFactor.Custom
  1052. Part26.formFactor = Enum.FormFactor.Custom
  1053. SpecialMesh27.Parent = Part26
  1054. SpecialMesh27.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  1055. SpecialMesh27.MeshType = Enum.MeshType.Cylinder
  1056. Part28.Name = "Leafs"
  1057. Part28.Parent = Tool0
  1058. Part28.CFrame = CFrame.new(48.6795998, 1.51648796, 19.1482849, -1.16759111e-07, 4.34269509e-10, -1, -1.52271241e-07, -1, 1.92770244e-11, -1, 1.49477273e-07, -2.93402991e-08)
  1059. Part28.Orientation = Vector3.new(0, -90, -180)
  1060. Part28.Position = Vector3.new(48.6795998, 1.51648796, 19.1482849)
  1061. Part28.Rotation = Vector3.new(180, -90, 0)
  1062. Part28.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1063. Part28.Size = Vector3.new(0.640000045, 0.329999983, 0.200000048)
  1064. Part28.Anchored = true
  1065. Part28.BrickColor = BrickColor.new("Reddish brown")
  1066. Part28.Material = Enum.Material.SmoothPlastic
  1067. Part28.brickColor = BrickColor.new("Reddish brown")
  1068. Part28.FormFactor = Enum.FormFactor.Custom
  1069. Part28.formFactor = Enum.FormFactor.Custom
  1070. SpecialMesh29.Parent = Part28
  1071. SpecialMesh29.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  1072. SpecialMesh29.MeshType = Enum.MeshType.Cylinder
  1073. Part30.Name = "Leafs"
  1074. Part30.Parent = Tool0
  1075. Part30.CFrame = CFrame.new(48.6795998, 1.543787, 18.7326698, -1.14498107e-07, -1.83335942e-08, -1, 0.258818775, -0.965925932, -1.1264305e-08, -0.965925932, -0.258818686, -3.08291419e-08)
  1076. Part30.Orientation = Vector3.new(0, -90, 165)
  1077. Part30.Position = Vector3.new(48.6795998, 1.543787, 18.7326698)
  1078. Part30.Rotation = Vector3.new(-165, -90, 0)
  1079. Part30.Color = Color3.new(0.411765, 0.25098, 0.156863)
  1080. Part30.Size = Vector3.new(0.200000077, 0.329999983, 0.200000048)
  1081. Part30.Anchored = true
  1082. Part30.BrickColor = BrickColor.new("Reddish brown")
  1083. Part30.Material = Enum.Material.SmoothPlastic
  1084. Part30.brickColor = BrickColor.new("Reddish brown")
  1085. Part30.FormFactor = Enum.FormFactor.Custom
  1086. Part30.formFactor = Enum.FormFactor.Custom
  1087. SpecialMesh31.Parent = Part30
  1088. SpecialMesh31.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  1089. SpecialMesh31.MeshType = Enum.MeshType.Cylinder
  1090. for i,v in pairs(mas:GetChildren()) do
  1091. v.Parent = workspace
  1092. pcall(function() v:MakeJoints() end)
  1093. end
  1094. mas:Destroy()
  1095. for i,v in pairs(cors) do
  1096. spawn(function()
  1097. pcall(v)
  1098. end)
  1099. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement