Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Decal2 = Instance.new("Decal")
- Decal3 = Instance.new("Decal")
- Decal4 = Instance.new("Decal")
- Decal5 = Instance.new("Decal")
- Decal6 = Instance.new("Decal")
- Decal7 = Instance.new("Decal")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Sound9 = Instance.new("Sound")
- LocalScript10 = Instance.new("LocalScript")
- LocalScript11 = Instance.new("LocalScript")
- HopperBin12 = Instance.new("HopperBin")
- LocalScript13 = Instance.new("LocalScript")
- BlockMesh14 = Instance.new("BlockMesh")
- Script15 = Instance.new("Script")
- Script16 = Instance.new("Script")
- HopperBin17 = Instance.new("HopperBin")
- LocalScript18 = Instance.new("LocalScript")
- HopperBin19 = Instance.new("HopperBin")
- LocalScript20 = Instance.new("LocalScript")
- BlockMesh21 = Instance.new("BlockMesh")
- Script22 = Instance.new("Script")
- Script23 = Instance.new("Script")
- Script24 = Instance.new("Script")
- StringValue25 = Instance.new("StringValue")
- Part26 = Instance.new("Part")
- SpecialMesh27 = Instance.new("SpecialMesh")
- Part28 = Instance.new("Part")
- SpecialMesh29 = Instance.new("SpecialMesh")
- Part30 = Instance.new("Part")
- SpecialMesh31 = Instance.new("SpecialMesh")
- Tool0.Name = "(Click to eat) Gomu Gomu no mi"
- Tool0.Parent = mas
- Tool0.Grip = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Tool0.GripForward = Vector3.new(1, -0, -0)
- Tool0.GripRight = Vector3.new(0, 0, 1)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- 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)
- Part1.Orientation = Vector3.new(-0.349999994, 180, -0.0599999987)
- Part1.Position = Vector3.new(48.749485, 0.503547013, 19.1430969)
- Part1.Rotation = Vector3.new(-179.649994, 0, 179.940002)
- Part1.Color = Color3.new(0.972549, 0.85098, 0.427451)
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Daisy orange")
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Daisy orange")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- Decal2.Parent = Part1
- Decal2.Texture = "rbxassetid://114369508"
- Decal2.Transparency = 0.5
- Decal3.Parent = Part1
- Decal3.Texture = "rbxassetid://114369508"
- Decal3.Transparency = 0.5
- Decal3.Face = Enum.NormalId.Left
- Decal4.Parent = Part1
- Decal4.Texture = "rbxassetid://114369508"
- Decal4.Transparency = 0.5
- Decal4.Face = Enum.NormalId.Back
- Decal5.Parent = Part1
- Decal5.Texture = "rbxassetid://114369508"
- Decal5.Transparency = 0.5
- Decal5.Face = Enum.NormalId.Right
- Decal6.Parent = Part1
- Decal6.Texture = "rbxassetid://114369508"
- Decal6.Transparency = 0.5
- Decal6.Face = Enum.NormalId.Top
- Decal7.Parent = Part1
- Decal7.Texture = "rbxassetid://114369508"
- Decal7.Transparency = 0.5
- Decal7.Face = Enum.NormalId.Bottom
- SpecialMesh8.Parent = Part1
- SpecialMesh8.Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995)
- SpecialMesh8.MeshType = Enum.MeshType.Sphere
- Sound9.Name = "Eat"
- Sound9.Parent = Part1
- Sound9.Looped = true
- Sound9.Pitch = 1.1000000238419
- Sound9.PlaybackSpeed = 1.1000000238419
- Sound9.SoundId = "rbxassetid://161190414"
- LocalScript10.Name = "InstaWeld"
- LocalScript10.Parent = Tool0
- table.insert(cors,sandbox(LocalScript10,function()
- local currentwelds = {}
- function Weld(x,y)
- local W = Instance.new("Weld")
- W.Part0 = x
- W.Part1 = y
- local CJ = CFrame.new(x.Position)
- local C0 = x.CFrame:inverse()*CJ
- local C1 = y.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = x
- currentwelds[#currentwelds+1] = W
- end
- function Get(A)
- if A:IsA("BasePart") then
- Weld(script.Parent.Handle, A)
- A.Anchored = false
- else
- local C = A:GetChildren()
- for i=1, #C do
- Get(C[i])
- end
- end
- end
- function Finale()
- currentwelds = {}
- Get(script.Parent)
- coroutine.resume(coroutine.create(function()
- wait(0.1)
- local toolparts = script.Parent:GetChildren()
- for h = 1, #toolparts do
- local c = toolparts[h]:GetChildren()
- for j = 1, #c do
- if c[j]:IsA("Weld") then
- local stop = false
- for k = 1, #currentwelds do
- if c[j] == currentwelds[k] then
- stop = true
- end
- end
- if not stop then
- c[j]:Destroy()
- end
- end
- end
- end
- end))
- end
- script.Parent.Equipped:connect(Finale)
- script.Parent.Unequipped:connect(Finale)
- Finale()
- end))
- LocalScript11.Name = "EatScript"
- LocalScript11.Parent = Tool0
- table.insert(cors,sandbox(LocalScript11,function()
- wait()
- local tool = script.Parent
- local player = owner
- defaultholdingpos = tool.GripPos
- eaten = false
- equipped = false
- cancelled = false
- tool.Equipped:connect(function()
- equipped = true
- script.Parent.Activated:connect(function()
- if not eaten then
- cancelled = false
- tool.GripPos = Vector3.new(0.8, -0.5, 1.5)
- tool.Handle.Eat:Play()
- wait(1.4)
- tool.Handle.Eat:Stop()
- if equipped and not cancelled then
- local currentsavedgear = player:FindFirstChild("StarterGear"):GetChildren()
- local hasdf = false
- if #currentsavedgear > 0 then
- for i = 1, #currentsavedgear do
- if currentsavedgear[i]:FindFirstChild("DevilFruitAbility") then
- currentsavedgear[i]:Destroy()
- hasdf = true
- end
- end
- end
- if not hasdf then
- local dftools = script:GetChildren()
- for i = 1, #dftools do
- local df_tag = Instance.new("StringValue")
- df_tag.Name = "DevilFruitAbility"
- df_tag.Value = tool.DevilFruitType.Value
- df_tag.Parent = dftools[i]
- dftools[i]:clone().Parent = player:FindFirstChild("Backpack")
- dftools[i]:clone().Parent = player:FindFirstChild("StarterGear")
- end
- tool:Destroy()
- elseif hasdf then
- if player.Character then
- if player.Character:FindFirstChild("Humanoid") then
- player.Character:BreakJoints()
- player.Character:FindFirstChild("Humanoid").Health = 0
- end
- end
- tool:Destroy()
- end
- end
- end
- end)
- end)
- tool.Unequipped:connect(function()
- tool.Handle.Eat:Stop()
- cancelled = true
- equipped = false
- if not eaten then
- tool.GripPos = defaultholdingpos
- end
- end)
- end))
- HopperBin12.Name = "Pistol"
- HopperBin12.Parent = LocalScript11
- LocalScript13.Name = "Normal"
- LocalScript13.Parent = HopperBin12
- table.insert(cors,sandbox(LocalScript13,function()
- COOLDOWN = 1
- MAX_VELOCITY = 475
- MIN_VELOCITY = 400
- AUTOFIRE = false
- SPREAD = 2
- ORIGIN_SPREAD = 0
- LOCK_FORWARD = false
- ANTI_GRAVITY = 1
- FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731"
- DESPAWN_TIME = 1
- wait(1)
- ------------------------------
- missile = Instance.new("Part")
- missile.Name = "Gomu"
- missile.Transparency = 0
- missile.Reflectance = 0
- missile.CanCollide = false
- missile.Shape = "Block"
- missile.FormFactor = "Custom"
- missile.Size = Vector3.new(2, 2, 2)
- missile.Elasticity = 0
- missile.TopSurface = 0
- missile.BottomSurface = 0
- while script:FindFirstChild("Mesh") == nil do wait() end
- script.Mesh:clone().Parent = missile
- force = Instance.new("BodyForce")
- force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY)
- force.Parent = missile
- scriptName = "ArrowScript"
- while script:FindFirstChild(scriptName) == nil do wait() end
- script:FindFirstChild(scriptName):clone().Parent = missile
- ------------------------------
- wait()
- Tool = script.Parent
- player = owner
- while player.Character == nil do wait() end
- char = player.Character
- function hidePart(part)
- if part:FindFirstChild("AttackHide") == nil then
- local hide = Instance.new("SpecialMesh")
- hide.Name = "AttackHide"
- hide.MeshType = "FileMesh"
- hide.Scale = Vector3.new(0, 0, 0)
- hide.Parent = part
- game.Debris:AddItem(hide, DESPAWN_TIME/2)
- end
- end
- shooting = false
- function fire(v)
- if choosehand == 1 then
- choosehand = 2
- arm = char:FindFirstChild("Right Arm")
- else
- choosehand = 1
- arm = char:FindFirstChild("Left Arm")
- end
- if arm == nil then return end
- hidePart(arm)
- if not LOCK_FORWARD then
- v_spreadx = math.random(-SPREAD, SPREAD)
- v_spready = math.random(-SPREAD, SPREAD)
- v_spreadz = math.random(-SPREAD, SPREAD)
- v = v + Vector3.new(v_spreadx, v_spready, v_spreadz)
- v = (v - arm.Position).unit
- else
- v = char:FindFirstChild("Torso").CFrame.lookVector
- end
- o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
- o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
- o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
- local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz)
- spawnPos = spawnPos + (v * 1)
- shot = missile:clone()
- shot.BrickColor = arm.BrickColor
- shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY)
- local launch = spawnPos + 2 * v
- shot.CFrame = CFrame.new(launch, launch + v)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = shot
- local firesound = Instance.new("Sound")
- firesound.Name = "FiredSound"
- firesound.SoundId = FIRE_SOUND
- firesound.Volume = 1
- firesound.Pitch = math.random(8, 14)/10
- firesound.Parent = shot
- shot.Parent = game.Workspace
- game.Debris:AddItem(shot, DESPAWN_TIME)
- shot:FindFirstChild(scriptName).Disabled = false
- end
- enabled = true
- gatlingmode = false
- function onButtonUp()
- shooting = false
- end
- function onDeselect()
- stopped = true
- end
- function gatlingOFF()
- gatlingmode = false -- its not gatling ya know
- COOLDOWN = 2
- MAX_VELOCITY = 250
- MIN_VELOCITY = 200
- AUTOFIRE = false
- SPREAD = 3
- ORIGIN_SPREAD = 3
- DESPAWN_TIME = 0.9
- missile.Transparency = 0.4
- LOCK_FORWARD = true
- end
- function gatlingON()
- gatlingmode = true -- its one shot
- COOLDOWN = 2
- MAX_VELOCITY = 475
- MIN_VELOCITY = 400
- AUTOFIRE = false
- SPREAD = 2
- ORIGIN_SPREAD = 0
- DESPAWN_TIME = 1
- missile.Transparency = 0
- LOCK_FORWARD = false
- end
- function onSelected(mouse)
- gatlingmode = false
- gatlingOFF()
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- if not enabled then return end
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- enabled = false
- shooting = true
- stopped = false
- while shooting do
- hum = char:FindFirstChild("Humanoid")
- if hum == nil then else
- if hum.Health <= 0 then shooting = false end
- fire(mouse.Hit.p)
- wait(COOLDOWN)
- if not AUTOFIRE then
- shooting = false
- end
- end
- if AUTOFIRE then
- wait(COOLDOWN)
- end
- if mouse then
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- enabled = true
- end
- end)
- mouse.Button1Up:connect(function() onButtonUp() end)
- mouse.KeyDown:connect(function(key2)
- local key=string.byte(key2)
- if key==string.byte("g") then
- if gatlingmode == false then
- gatlingON()
- else
- gatlingOFF()
- end
- end
- end)
- end
- script.Parent.Selected:connect(onSelected)
- script.Parent.Deselected:connect(onDeselected)
- end))
- BlockMesh14.Parent = LocalScript13
- Script15.Name = "Stretch"
- Script15.Parent = BlockMesh14
- table.insert(cors,sandbox(Script15,function()
- local missile = script.Parent.Parent
- if missile:IsA("Part") then
- origPos = missile.Position
- m = script.Parent
- for i = 1, 10 do
- script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8
- dist = (origPos - missile.Position).magnitude
- m.Scale = Vector3.new(0.5, 0.5, dist/2)
- m.Offset = Vector3.new(0.5, 0.5, dist/2)
- wait()
- end
- wait(0.1)
- script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6
- while true do
- script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15
- dist = (origPos - missile.Position).magnitude
- m.Scale = Vector3.new(0.5, 0.5, dist/2)
- m.Offset = Vector3.new(0.5, 0.5, dist/2)
- wait()
- end
- end
- end))
- Script16.Name = "ArrowScript"
- Script16.Parent = LocalScript13
- table.insert(cors,sandbox(Script16,function()
- arrow = script.Parent
- local hitsound = Instance.new("Sound")
- hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113"
- hitsound.Volume = 0.3
- hitsound.Pitch = math.random(11, 17)/10
- hitsound.Parent = arrow
- if arrow:FindFirstChild("creator") == nil then
- arrow:WaitForChild("creator")
- end
- damage = 25
- if arrow.Transparency ~= 0 then
- damage = 25
- end
- local tag = arrow:FindFirstChild("creator")
- local ourguy = tag.Value.Character:FindFirstChild("Humanoid")
- function onTouched(hit)
- humanoid = nil
- if tag ~= nil and ourguy ~= nil then
- if hit.Parent == nil then return end
- if hit.Parent:findFirstChild("Humanoid") then
- humanoid = hit.Parent:findFirstChild("Humanoid")
- elseif hit.Parent.Parent:findFirstChild("Humanoid") then
- humanoid = hit.Parent.Parent:findFirstChild("Humanoid")
- end
- if humanoid ~= nil then
- if humanoid ~= ourguy then
- stop = false
- local ph = hit.Parent:FindFirstChild("PunchHurt")
- if (ph ~= nil) then
- if ph.Value == false then
- stop = true
- end
- end
- if stop == false then
- hitsound:Play()
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- arrow:Destroy()
- end
- end
- elseif hit.Anchored == true and hit.CanCollide == true then
- arrow:Destroy()
- end
- end
- end
- function tagHumanoid(humanoid)
- local tag = arrow:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- game.Debris:AddItem(new_tag, 1)
- end
- end
- arrow.Touched:connect(onTouched)
- wait()
- if arrow:FindFirstChild("FiredSound") then
- arrow:FindFirstChild("FiredSound"):Play()
- end
- wait(10)
- arrow:Destroy()
- end))
- Script16.Disabled = true
- HopperBin17.Name = "Gear Second"
- HopperBin17.Parent = LocalScript11
- LocalScript18.Parent = HopperBin17
- table.insert(cors,sandbox(LocalScript18,function()
- bin = script.Parent
- player = script.Parent.Parent.Parent
- me = script.Parent.Parent.Parent
- enabled = true
- function Talk(msg)
- game:GetService("Chat"):Chat(player.Character.Head, msg, Enum.ChatColor.Blue)
- end
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- local player = owner
- if player == nil then return end
- enabled = false
- RightShoulder = me.Character.Torso["Right Shoulder"]
- LeftShoulder = me.Character.Torso["Left Shoulder"]
- Run = game:GetService("RunService")
- for i = 1, 3 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, 1)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, -1)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 1.1, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, -1.1, 0)
- Run.Stepped:wait(0.005)
- end
- -------------------------------------------------------------------------------
- --EDIT HERE--
- Talk("Gear Second!")-- you can change Gear Second or Gear 2nd
- gg = Instance.new("Part")
- gg.Anchored = true
- gg.Shape = "Ball" --THIS ball will appear when transforming
- gg.TopSurface = "Smooth"
- gg.BottomSurface = "Smooth"
- gg.BrickColor = BrickColor.new("Persimmon")--color of the bode when transforming
- gg.CanCollide = false
- gg.Parent = Workspace
- gg.Size = Vector3.new(6, 6, 6)
- p = Instance.new("PointLight", gg)
- p.Brightness = 10
- p.Range = 10
- p.Color = Color3.new(255, 0, 0)
- gg.CFrame = me.Character.Torso.CFrame*CFrame.new(0, 0, 0)
- qq = Instance.new("SpecialMesh")
- qq.Parent = gg
- qq.Scale = Vector3.new(6, 6, 6)
- qq.MeshType = ("Sphere")
- for i = 1,6 do
- qq.Scale = qq.Scale -Vector3.new(1 ,1 ,1)
- wait(0.01)
- end
- gg:remove()
- Hardening = me.Character["Body Colors"]
- Hardening.LeftArmColor = BrickColor.new("Persimmon") --color
- Hardening.RightArmColor = BrickColor.new("Persimmon")--of
- Hardening.RightLegColor = BrickColor.new("Persimmon")--the
- Hardening.LeftLegColor = BrickColor.new("Persimmon")--body
- Hardening.TorsoColor = BrickColor.new("Persimmon")--when
- Hardening. HeadColor = BrickColor.new("Persimmon")--transforming
- j = me.Character.Head
- k = me.Character.Torso
- q = me.Character["Left Arm"]
- w = me.Character["Left Leg"]
- e = me.Character["Right Arm"]
- r = me.Character["Right Leg"]
- me.Character.Humanoid.MaxHealth = 500-- 500 - 550 Health of human when transformed
- me.Character.Humanoid.Health = 500----- SAME ONE
- me.Character.Humanoid.WalkSpeed = 0
- wait(1.5)
- me.Character.Humanoid.WalkSpeed = 20 --edit 17 - 100 it will increase speed
- for i = 1, 3 do
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 1.1, 0)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, -1.1, 0)
- LeftShoulder.C0 = LeftShoulder.C0 *CFrame.Angles(0, 0, -1)
- RightShoulder.C0 = RightShoulder.C0 *CFrame.Angles(0, 0, 1)
- Run.Stepped:wait(0.01)
- end
- wait(20)
- enabled = true
- end
- enabled = true
- function onS(mouse)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- bin.Selected:connect(onS)
- end))
- HopperBin19.Name = "Gatling Gun"
- HopperBin19.Parent = LocalScript11
- LocalScript20.Name = "Gatling"
- LocalScript20.Parent = HopperBin19
- table.insert(cors,sandbox(LocalScript20,function()
- COOLDOWN = 2
- MAX_VELOCITY = 475
- MIN_VELOCITY = 400
- AUTOFIRE = false
- SPREAD = 2
- ORIGIN_SPREAD = 0
- LOCK_FORWARD = false
- ANTI_GRAVITY = 1
- FIRE_SOUND = "http://www.roblox.com/asset/?id=93011731"
- DESPAWN_TIME = 1
- wait(1)
- ------------------------------
- missile = Instance.new("Part")
- missile.Name = "Gomu"
- missile.Transparency = 0
- missile.Reflectance = 0
- missile.CanCollide = false
- missile.Shape = "Block"
- missile.FormFactor = "Custom"
- missile.Size = Vector3.new(2, 2, 2)
- missile.Elasticity = 0
- missile.TopSurface = 0
- missile.BottomSurface = 0
- while script:FindFirstChild("Mesh") == nil do wait() end
- script.Mesh:clone().Parent = missile
- force = Instance.new("BodyForce")
- force.force = Vector3.new(0,missile:GetMass() * 196.2 * ANTI_GRAVITY)
- force.Parent = missile
- scriptName = "ArrowScript"
- while script:FindFirstChild(scriptName) == nil do wait() end
- script:FindFirstChild(scriptName):clone().Parent = missile
- ------------------------------
- wait()
- Tool = script.Parent
- player = owner
- while player.Character == nil do wait() end
- char = player.Character
- function hidePart(part)
- if part:FindFirstChild("AttackHide") == nil then
- local hide = Instance.new("SpecialMesh")
- hide.Name = "AttackHide"
- hide.MeshType = "FileMesh"
- hide.Scale = Vector3.new(0, 0, 0)
- hide.Parent = part
- game.Debris:AddItem(hide, DESPAWN_TIME/2)
- end
- end
- shooting = false
- function fire(v)
- if choosehand == 1 then
- choosehand = 2
- arm = char:FindFirstChild("Right Arm")
- else
- choosehand = 1
- arm = char:FindFirstChild("Left Arm")
- end
- if arm == nil then return end
- hidePart(arm)
- if not LOCK_FORWARD then
- v_spreadx = math.random(-SPREAD, SPREAD)
- v_spready = math.random(-SPREAD, SPREAD)
- v_spreadz = math.random(-SPREAD, SPREAD)
- v = v + Vector3.new(v_spreadx, v_spready, v_spreadz)
- v = (v - arm.Position).unit
- else
- v = char:FindFirstChild("Torso").CFrame.lookVector
- end
- o_spreadx = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
- o_spready = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
- o_spreadz = math.random(-ORIGIN_SPREAD, ORIGIN_SPREAD)
- local spawnPos = arm.Position + Vector3.new(o_spreadx, o_spready, o_spreadz)
- spawnPos = spawnPos + (v * 1)
- shot = missile:clone()
- shot.BrickColor = arm.BrickColor
- shot.Velocity = v * math.random(MIN_VELOCITY, MAX_VELOCITY)
- local launch = spawnPos + 2 * v
- shot.CFrame = CFrame.new(launch, launch + v)
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = player
- creator_tag.Name = "creator"
- creator_tag.Parent = shot
- local firesound = Instance.new("Sound")
- firesound.Name = "FiredSound"
- firesound.SoundId = FIRE_SOUND
- firesound.Volume = 1
- firesound.Pitch = math.random(8, 14)/10
- firesound.Parent = shot
- shot.Parent = game.Workspace
- game.Debris:AddItem(shot, DESPAWN_TIME)
- shot:FindFirstChild(scriptName).Disabled = false
- end
- enabled = true
- gatlingmode = false
- function onButtonUp()
- shooting = false
- end
- function onDeselect()
- stopped = true
- end
- function gatlingON()
- gatlingmode = true --if gatling mode
- COOLDOWN = 0
- MAX_VELOCITY = 250
- MIN_VELOCITY = 200
- AUTOFIRE = true --it means if you click one time it will repeat
- SPREAD = 3
- ORIGIN_SPREAD = 3
- DESPAWN_TIME = 0.9
- missile.Transparency = 0.4
- LOCK_FORWARD = true --change it to false if you want to back attack
- end
- function gatlingOFF()
- gatlingmode = false -- if one shot mode
- COOLDOWN = 0.4
- MAX_VELOCITY = 475
- MIN_VELOCITY = 400
- AUTOFIRE = true --it means if you click one time it will repeat
- SPREAD = 2
- ORIGIN_SPREAD = 0
- DESPAWN_TIME = 1
- missile.Transparency = 0
- LOCK_FORWARD = false
- end
- function onSelected(mouse)
- gatlingmode = true
- gatlingON()
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- if not enabled then return end
- mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
- enabled = false
- shooting = true
- stopped = false
- while shooting do
- hum = char:FindFirstChild("Humanoid")
- if hum == nil then else
- if hum.Health <= 0 then shooting = false end
- fire(mouse.Hit.p)
- wait(COOLDOWN)
- if not AUTOFIRE then
- shooting = false
- end
- end
- if AUTOFIRE then
- wait(COOLDOWN)
- end
- if mouse then
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- enabled = true
- end
- end)
- mouse.Button1Up:connect(function() onButtonUp() end)
- mouse.KeyDown:connect(function(key2)
- local key=string.byte(key2)
- if key==string.byte("g") then
- if gatlingmode == false then
- gatlingON()
- else
- gatlingOFF()
- end
- end
- end)
- end
- script.Parent.Selected:connect(onSelected)
- script.Parent.Deselected:connect(onDeselected)
- end))
- BlockMesh21.Parent = LocalScript20
- Script22.Name = "Stretch"
- Script22.Parent = BlockMesh21
- table.insert(cors,sandbox(Script22,function()
- local missile = script.Parent.Parent
- if missile:IsA("Part") then
- origPos = missile.Position
- m = script.Parent
- for i = 1, 10 do
- script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 0.8
- dist = (origPos - missile.Position).magnitude
- m.Scale = Vector3.new(0.5, 0.5, dist/2)
- m.Offset = Vector3.new(0.5, 0.5, dist/2)
- wait()
- end
- wait(0.1)
- script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * -0.6
- while true do
- script.Parent.Parent.Velocity = script.Parent.Parent.Velocity * 1.15
- dist = (origPos - missile.Position).magnitude
- m.Scale = Vector3.new(0.5, 0.5, dist/2)
- m.Offset = Vector3.new(0.5, 0.5, dist/2)
- wait()
- end
- end
- end))
- Script23.Name = "ArrowScript"
- Script23.Parent = LocalScript20
- table.insert(cors,sandbox(Script23,function()
- arrow = script.Parent
- local hitsound = Instance.new("Sound")
- hitsound.SoundId = "http://www.roblox.com/asset/?id=137579113"
- hitsound.Volume = 0.3
- hitsound.Pitch = math.random(11, 17)/10
- hitsound.Parent = arrow
- if arrow:FindFirstChild("creator") == nil then
- arrow:WaitForChild("creator")
- end
- damage = 40
- if arrow.Transparency ~= 0 then
- damage = 40
- end
- local tag = arrow:FindFirstChild("creator")
- local ourguy = tag.Value.Character:FindFirstChild("Humanoid")
- function onTouched(hit)
- humanoid = nil
- if tag ~= nil and ourguy ~= nil then
- if hit.Parent == nil then return end
- if hit.Parent:findFirstChild("Humanoid") then
- humanoid = hit.Parent:findFirstChild("Humanoid")
- elseif hit.Parent.Parent:findFirstChild("Humanoid") then
- humanoid = hit.Parent.Parent:findFirstChild("Humanoid")
- end
- if humanoid ~= nil then
- if humanoid ~= ourguy then
- stop = false
- local ph = hit.Parent:FindFirstChild("PunchHurt")
- if (ph ~= nil) then
- if ph.Value == false then
- stop = true
- end
- end
- if stop == false then
- hitsound:Play()
- tagHumanoid(humanoid, vPlayer)
- humanoid:TakeDamage(damage)
- arrow:Destroy()
- end
- end
- elseif hit.Anchored == true and hit.CanCollide == true then
- arrow:Destroy()
- end
- end
- end
- function tagHumanoid(humanoid)
- local tag = arrow:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- game.Debris:AddItem(new_tag, 1)
- end
- end
- arrow.Touched:connect(onTouched)
- wait()
- if arrow:FindFirstChild("FiredSound") then
- arrow:FindFirstChild("FiredSound"):Play()
- end
- wait(10)
- arrow:Destroy()
- end))
- Script23.Disabled = true
- Script24.Name = "DevilFruitAttributes"
- Script24.Parent = LocalScript11
- table.insert(cors,sandbox(Script24,function()
- wait()
- if script.Parent then
- if not script.Parent:IsA("Script") or not script.Parent.Name == "StarterGear" then
- local debris = game:GetService("Debris")
- local backpack = script.Parent
- local player = backpack.Parent
- while player.Character == nil do wait() end
- local character = player.Character
- if character then
- while character:FindFirstChild("Humanoid") == nil do wait() end
- local hum = character:FindFirstChild("Humanoid")
- -- Logia
- local charparts = character:GetChildren()
- for i = 1, #charparts do
- local charpart = charparts[i]
- if charpart:IsA("BasePart") then
- charpart.Touched:connect(function(hit)
- if charpart:FindFirstChild("Hide") then return end
- local stop = true
- if hit ~= nil then
- if hit.Parent ~= nil then
- if hit:FindFirstChild("creator") or hit.Parent:FindFirstChild("creator") then
- stop = false
- elseif hit.Parent:FindFirstChild("Humanoid") then
- if hit.Parent:FindFirstChild("Humanoid") ~= hum then
- stop = false
- end
- end
- end
- end
- if stop then return end
- local hidemesh = Instance.new("SpecialMesh")
- hidemesh.Name = "Hide"
- hidemesh.MeshType = "FileMesh"
- hidemesh.MeshId = ""
- hidemesh.Scale = Vector3.new(0, 0, 0)
- hidemesh.Parent = charpart
- debris:AddItem(hidemesh, 1.5)
- local bodyeffect = Instance.new("Part")
- bodyeffect.Name = "BodyEffect"
- bodyeffect.Transparency = 0.3
- bodyeffect.CanCollide = false
- bodyeffect.FormFactor = "Custom"
- bodyeffect.Size = Vector3.new(0.2, 0.2, 0.2)
- bodyeffect.TopSurface = "Smooth"
- bodyeffect.BottomSurface = "Smooth"
- bodyeffect.CFrame = charpart.CFrame
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshId = "http://www.roblox.com/asset?id=165709404"
- mesh.TextureId = "http://www.roblox.com/asset?id=165709478"
- mesh.Scale = Vector3.new(3, 3, 3)
- mesh.Parent = bodyeffect
- local sound = Instance.new("Sound")
- sound.SoundId = "http://www.roblox.com/asset/?id=31759626"
- sound.Volume = 0.3
- sound.Pitch = math.random(9, 11)/10
- sound.Parent = bodyeffect
- local light = Instance.new("PointLight")
- light.Range = 5
- light.Color = Color3.new(1, 1, 0)
- light.Parent = bodyeffect
- bodyeffect.Parent = charpart.Parent
- sound:Play()
- local weld = Instance.new("ManualWeld")
- weld.Part0 = bodyeffect
- weld.Part1 = charpart
- weld.C1 = charpart.CFrame:inverse() * bodyeffect.CFrame
- weld.Parent = bodyeffect
- debris:AddItem(bodyeffect, 1.5)
- end)
- end
- end
- end
- end
- end
- end))
- StringValue25.Name = "DevilFruitType"
- StringValue25.Parent = Tool0
- StringValue25.Value = "Rubber"
- Part26.Name = "Leafs"
- Part26.Parent = Tool0
- 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)
- Part26.Orientation = Vector3.new(0, -90, 90)
- Part26.Position = Vector3.new(48.6795959, 1.326491, 19.1532822)
- Part26.Rotation = Vector3.new(-90, -90, 0)
- Part26.Color = Color3.new(1, 0.34902, 0.34902)
- Part26.Size = Vector3.new(0.410000086, 0.329999983, 0.200000048)
- Part26.Anchored = true
- Part26.BrickColor = BrickColor.new("Persimmon")
- Part26.Material = Enum.Material.SmoothPlastic
- Part26.brickColor = BrickColor.new("Persimmon")
- Part26.FormFactor = Enum.FormFactor.Custom
- Part26.formFactor = Enum.FormFactor.Custom
- SpecialMesh27.Parent = Part26
- SpecialMesh27.Scale = Vector3.new(1, 0.200000003, 0.200000003)
- SpecialMesh27.MeshType = Enum.MeshType.Cylinder
- Part28.Name = "Leafs"
- Part28.Parent = Tool0
- 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)
- Part28.Orientation = Vector3.new(0, -90, -180)
- Part28.Position = Vector3.new(48.6795998, 1.51648796, 19.1482849)
- Part28.Rotation = Vector3.new(180, -90, 0)
- Part28.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part28.Size = Vector3.new(0.640000045, 0.329999983, 0.200000048)
- Part28.Anchored = true
- Part28.BrickColor = BrickColor.new("Reddish brown")
- Part28.Material = Enum.Material.SmoothPlastic
- Part28.brickColor = BrickColor.new("Reddish brown")
- Part28.FormFactor = Enum.FormFactor.Custom
- Part28.formFactor = Enum.FormFactor.Custom
- SpecialMesh29.Parent = Part28
- SpecialMesh29.Scale = Vector3.new(1, 0.200000003, 0.200000003)
- SpecialMesh29.MeshType = Enum.MeshType.Cylinder
- Part30.Name = "Leafs"
- Part30.Parent = Tool0
- 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)
- Part30.Orientation = Vector3.new(0, -90, 165)
- Part30.Position = Vector3.new(48.6795998, 1.543787, 18.7326698)
- Part30.Rotation = Vector3.new(-165, -90, 0)
- Part30.Color = Color3.new(0.411765, 0.25098, 0.156863)
- Part30.Size = Vector3.new(0.200000077, 0.329999983, 0.200000048)
- Part30.Anchored = true
- Part30.BrickColor = BrickColor.new("Reddish brown")
- Part30.Material = Enum.Material.SmoothPlastic
- Part30.brickColor = BrickColor.new("Reddish brown")
- Part30.FormFactor = Enum.FormFactor.Custom
- Part30.formFactor = Enum.FormFactor.Custom
- SpecialMesh31.Parent = Part30
- SpecialMesh31.Scale = Vector3.new(1, 0.200000003, 0.200000003)
- SpecialMesh31.MeshType = Enum.MeshType.Cylinder
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement