Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"))
- Sound0 = Instance.new("Sound")
- Sound1 = Instance.new("Sound")
- Sound2 = Instance.new("Sound")
- SpecialMesh3 = Instance.new("SpecialMesh")
- ParticleEmitter4 = Instance.new("ParticleEmitter")
- Sparkles5 = Instance.new("Sparkles")
- Tool6 = Instance.new("Tool")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Sound9 = Instance.new("Sound")
- Sound10 = Instance.new("Sound")
- Sound11 = Instance.new("Sound")
- Sparkles12 = Instance.new("Sparkles")
- ParticleEmitter13 = Instance.new("ParticleEmitter")
- Script14 = Instance.new("Script")
- Script15 = Instance.new("Script")
- Script16 = Instance.new("Script")
- LocalScript17 = Instance.new("LocalScript")
- Script18 = Instance.new("Script")
- Script19 = Instance.new("Script")
- Script20 = Instance.new("Script")
- Script21 = Instance.new("Script")
- Script22 = Instance.new("Script")
- LocalScript23 = Instance.new("LocalScript")
- Part24 = Instance.new("Part")
- SpecialMesh25 = Instance.new("SpecialMesh")
- Sound26 = Instance.new("Sound")
- Sound27 = Instance.new("Sound")
- Sound28 = Instance.new("Sound")
- Sparkles29 = Instance.new("Sparkles")
- ParticleEmitter30 = Instance.new("ParticleEmitter")
- Sound26.Name = "CoilSound"
- Sound26.Parent = Part24
- Sound26.SoundId = "http://www.roblox.com/asset/?id=16619553"
- Sound26.Volume = 1
- Sound27.Name = "CoilSound"
- Sound27.Parent = Part24
- Sound27.SoundId = "http://www.roblox.com/asset/?id=99173388"
- Sound27.Volume = 1
- Sound28.Name = "CoilSound"
- Sound28.Parent = Part24
- Sound28.SoundId = "http://www.roblox.com/asset/?id=16619553"
- Sound28.Volume = 1
- SpecialMesh25.Parent = Part24
- SpecialMesh25.MeshId = "http://www.roblox.com/asset/?id=16606212"
- SpecialMesh25.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
- SpecialMesh25.VertexColor = Vector3.new(90, 90, 90)
- SpecialMesh25.TextureId = "rbxgameasset://Images/White Decal"
- SpecialMesh25.MeshType = Enum.MeshType.FileMesh
- ParticleEmitter30.Parent = Part24
- ParticleEmitter30.Texture = "rbxassetid://288392896"
- ParticleEmitter30.Size = NumberSequence.new(15,15)
- ParticleEmitter30.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter30.Rate = 5
- ParticleEmitter30.SpreadAngle = Vector2.new(20, 20)
- ParticleEmitter30.VelocitySpread = 20
- Sparkles29.Parent = Part24
- Sparkles29.Color = Color3.new(1.77083, 10.2, 1)
- Sparkles29.SparkleColor = Color3.new(1, 1, 1)
- Tool6.Name = "fire Coil"
- Tool6.Parent = mas
- Tool6.TextureId = "rbxgameasset://Images/White Decal"
- Tool6.CanBeDropped = false
- Tool6.Grip = CFrame.new(0, 0, 1, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Tool6.GripForward = Vector3.new(-0, -0, 1)
- Tool6.GripPos = Vector3.new(0, 0, 1)
- Tool6.GripRight = Vector3.new(-1, 0, 0)
- Part24.Name = "Handle"
- Part24.Parent = Tool6
- Part24.CFrame = CFrame.new(13.8239956, 1.00001204, 9.13471794, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Part24.Orientation = Vector3.new(90, 0, 0)
- Part24.Position = Vector3.new(13.8239956, 1.00001204, 9.13471794)
- Part24.Rotation = Vector3.new(90, 0, 0)
- Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part24.Size = Vector3.new(1, 2, 2)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Institutional white")
- Part24.Material = Enum.Material.DiamondPlate
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Institutional white")
- Part24.FormFactor = Enum.FormFactor.Plate
- Part24.formFactor = Enum.FormFactor.Plate
- SpecialMesh25.Parent = Part24
- SpecialMesh25.MeshId = "http://www.roblox.com/asset/?id=16606212"
- SpecialMesh25.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
- SpecialMesh25.VertexColor = Vector3.new(90, 90, 90)
- SpecialMesh25.TextureId = "rbxgameasset://Images/White Decal"
- SpecialMesh25.MeshType = Enum.MeshType.FileMesh
- Sound26.Name = "CoilSound"
- Sound26.Parent = Part24
- Sound26.SoundId = "http://www.roblox.com/asset/?id=16619553"
- Sound26.Volume = 1
- Sound27.Name = "CoilSound"
- Sound27.Parent = Part24
- Sound27.SoundId = "http://www.roblox.com/asset/?id=99173388"
- Sound27.Volume = 1
- Sound28.Name = "CoilSound"
- Sound28.Parent = Part24
- Sound28.SoundId = "http://www.roblox.com/asset/?id=16619553"
- Sound28.Volume = 1
- Sparkles29.Parent = Part24
- Sparkles29.Color = Color3.new(1.77083, 10.2, 1)
- Sparkles29.SparkleColor = Color3.new(1, 1, 1)
- ParticleEmitter30.Parent = Part24
- ParticleEmitter30.Texture = "rbxassetid://288392896"
- ParticleEmitter30.Size = NumberSequence.new(15,15)
- ParticleEmitter30.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter30.Rate = 5
- ParticleEmitter30.SpreadAngle = Vector2.new(20, 20)
- ParticleEmitter30.VelocitySpread = 20
- Script19.Name = "GravityCoilScript"
- Script19.Parent = Tool6
- table.insert(cors,sandbox(Script19,function()
- --Script Edited By MasterBias
- r = game:service("RunService")
- Tool = script.Parent
- local equalizingForce = 236 / 1.2
- local gravity = .700
- local ghostEffect = nil
- local massCon1 = nil
- local massCon2 = nil
- function recursiveGetLift(node)
- local m = 0
- local c = node:GetChildren()
- for i=1,#c do
- if c[i].className == "Part" then
- if c[i].Name == "Handle" then
- m = m + (c[i]:GetMass() * equalizingForce * 1)
- else
- m = m + (c[i]:GetMass() * equalizingForce * gravity)
- end
- end
- m = m + recursiveGetLift(c[i])
- end
- return m
- end
- function onMassChanged(child, char)
- print("Mass changed:" .. child.Name .. " " .. char.Name)
- if (ghostEffect ~= nil) then
- ghostEffect.force = Vector3.new(0, recursiveGetLift(char) ,0)
- end
- end
- function UpdateGhostState(isUnequipping)
- if isUnequipping == true then
- ghostEffect:Remove()
- ghostEffect = nil
- massCon1:disconnect()
- massCon2:disconnect()
- else
- if ghostEffect == nil then
- local char = Tool.Parent
- if char == nil then return end
- ghostEffect = Instance.new("BodyForce")
- ghostEffect.Name = "GravityCoilEffect"
- ghostEffect.force = Vector3.new(0, recursiveGetLift(char) ,0)
- ghostEffect.Parent = char.Head
- ghostChar = char
- massCon1 = char.ChildAdded:connect(function(child) onMassChanged(child, char) end)
- massCon2 = char.ChildRemoved:connect(function(child) onMassChanged(child, char) end)
- end
- end
- end
- function onEquipped()
- Tool.Handle.CoilSound:Play()
- UpdateGhostState(false)
- end
- function onUnequipped()
- UpdateGhostState(true)
- end
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(onUnequipped)
- end))
- Script21.Parent = Tool6
- table.insert(cors,sandbox(Script21,function()
- --Script Made By MasterBias
- health = 100
- active = false
- script.Parent.Equipped:connect(function()
- active = true
- end)
- script.Parent.Unequipped:connect(function()
- active = false
- end)
- while wait(1) do
- if active then
- script.Parent.Parent.Humanoid.Health = script.Parent.Parent.Humanoid.Health + health
- end
- end
- end))
- Script22.Name = "SpeedBoostScript"
- Script22.Parent = Tool6
- table.insert(cors,sandbox(Script22,function()
- --Script Edited By MasterBias
- sp=script.Parent
- speedboost=1
- speedforsmoke=10
- function waitfor(a,b,c)
- local c=c or 5*60
- local d=tick()+c
- while a:FindFirstChild(b)==nil and tick()<=d do
- wait()
- end
- return a:FindFirstChild(b)
- end
- local tooltag=waitfor(script,"ToolTag",2)
- if tooltag~=nil then
- local tool=tooltag.Value
- local h=sp:FindFirstChild("Humanoid")
- if h~=nil then
- h.WalkSpeed=40+90*speedboost
- local t=sp:FindFirstChild("Torso")
- if t~=nil then
- smokepart=Instance.new("Part")
- smokepart.FormFactor="Custom"
- smokepart.Size=Vector3.new(0,0,0)
- smokepart.TopSurface="Smooth"
- smokepart.BottomSurface="Smooth"
- smokepart.CanCollide=false
- smokepart.Transparency=1
- local weld=Instance.new("Weld")
- weld.Name="SmokePartWeld"
- weld.Part0=t
- weld.Part1=smokepart
- weld.C0=CFrame.new(0,-3.5,0)*CFrame.Angles(math.pi/4,0,0)
- weld.Parent=smokepart
- smokepart.Parent=sp
- smoke=Instance.new("Smoke")
- smoke.Enabled=t.Velocity.magnitude>speedforsmoke
- smoke.RiseVelocity=2
- smoke.Opacity=.25
- smoke.Size=.5
- smoke.Parent=smokepart
- h.Running:connect(function(speed)
- if smoke and smoke~=nil then
- smoke.Enabled=speed>speedforsmoke
- end
- end)
- end
- end
- while tool~=nil and tool.Parent==sp and h~=nil do
- sp.ChildRemoved:wait()
- end
- local h=sp:FindFirstChild("Humanoid")
- if h~=nil then
- h.WalkSpeed=16
- end
- end
- if smokepart~=nil then
- smokepart:remove()
- end
- script:remove()
- end))
- Script22.Disabled = true
- LocalScript23.Parent = Tool6
- table.insert(cors,sandbox(LocalScript23,function()
- --Script Edited By MasterBias
- sp=script.Parent
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- a.ChildAdded:wait()
- end
- return a:FindFirstChild(b)
- end
- speedboostscript=waitfor(sp,"SpeedBoostScript")
- function Equipped()
- if sp.Parent:FindFirstChild("SpeedBoostScript")==nil then
- local s=speedboostscript:clone()
- local tooltag=Instance.new("ObjectValue")
- tooltag.Name="ToolTag"
- tooltag.Value=sp
- tooltag.Parent=s
- s.Parent=sp.Parent
- s.Disabled=false
- local sound=sp.Handle:FindFirstChild("CoilSound")
- if sound~=nil then
- sound:Play()
- end
- end
- end
- sp.Equipped:connect(Equipped)
- end))
- Script20.Parent = Tool6
- table.insert(cors,sandbox(Script20,function()
- health = 100
- active = false
- script.Parent.Equipped:connect(function()
- active = true
- end)
- script.Parent.Unequipped:connect(function()
- active = false
- end)
- while wait(1) do
- if active then
- script.Parent.Parent.Humanoid.Health = script.Parent.Parent.Humanoid.Health + health
- end
- end
- end))
- Script19.Name = "GravityCoilScript"
- Script19.Parent = Tool6
- table.insert(cors,sandbox(Script19,function()
- --Script Edited By MasterBias
- r = game:service("RunService")
- Tool = script.Parent
- local equalizingForce = 236 / 1.2
- local gravity = .700
- local ghostEffect = nil
- local massCon1 = nil
- local massCon2 = nil
- function recursiveGetLift(node)
- local m = 0
- local c = node:GetChildren()
- for i=1,#c do
- if c[i].className == "Part" then
- if c[i].Name == "Handle" then
- m = m + (c[i]:GetMass() * equalizingForce * 1)
- else
- m = m + (c[i]:GetMass() * equalizingForce * gravity)
- end
- end
- m = m + recursiveGetLift(c[i])
- end
- return m
- end
- function onMassChanged(child, char)
- print("Mass changed:" .. child.Name .. " " .. char.Name)
- if (ghostEffect ~= nil) then
- ghostEffect.force = Vector3.new(0, recursiveGetLift(char) ,0)
- end
- end
- function UpdateGhostState(isUnequipping)
- if isUnequipping == true then
- ghostEffect:Remove()
- ghostEffect = nil
- massCon1:disconnect()
- massCon2:disconnect()
- else
- if ghostEffect == nil then
- local char = Tool.Parent
- if char == nil then return end
- ghostEffect = Instance.new("BodyForce")
- ghostEffect.Name = "GravityCoilEffect"
- ghostEffect.force = Vector3.new(0, recursiveGetLift(char) ,0)
- ghostEffect.Parent = char.Head
- ghostChar = char
- massCon1 = char.ChildAdded:connect(function(child) onMassChanged(child, char) end)
- massCon2 = char.ChildRemoved:connect(function(child) onMassChanged(child, char) end)
- end
- end
- end
- function onEquipped()
- Tool.Handle.CoilSound:Play()
- UpdateGhostState(false)
- end
- function onUnequipped()
- UpdateGhostState(true)
- end
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(onUnequipped)
- end))
- Script20.Parent = Tool6
- table.insert(cors,sandbox(Script20,function()
- health = 100
- active = false
- script.Parent.Equipped:connect(function()
- active = true
- end)
- script.Parent.Unequipped:connect(function()
- active = false
- end)
- while wait(1) do
- if active then
- script.Parent.Parent.Humanoid.Health = script.Parent.Parent.Humanoid.Health + health
- end
- end
- end))
- Script21.Parent = Tool6
- table.insert(cors,sandbox(Script21,function()
- --Script Made By MasterBias
- health = 100
- active = false
- script.Parent.Equipped:connect(function()
- active = true
- end)
- script.Parent.Unequipped:connect(function()
- active = false
- end)
- while wait(1) do
- if active then
- script.Parent.Parent.Humanoid.Health = script.Parent.Parent.Humanoid.Health + health
- end
- end
- end))
- Script22.Name = "SpeedBoostScript"
- Script22.Parent = Tool6
- table.insert(cors,sandbox(Script22,function()
- --Script Edited By MasterBias
- sp=script.Parent
- speedboost=1
- speedforsmoke=10
- function waitfor(a,b,c)
- local c=c or 5*60
- local d=tick()+c
- while a:FindFirstChild(b)==nil and tick()<=d do
- wait()
- end
- return a:FindFirstChild(b)
- end
- local tooltag=waitfor(script,"ToolTag",2)
- if tooltag~=nil then
- local tool=tooltag.Value
- local h=sp:FindFirstChild("Humanoid")
- if h~=nil then
- h.WalkSpeed=40+90*speedboost
- local t=sp:FindFirstChild("Torso")
- if t~=nil then
- smokepart=Instance.new("Part")
- smokepart.FormFactor="Custom"
- smokepart.Size=Vector3.new(0,0,0)
- smokepart.TopSurface="Smooth"
- smokepart.BottomSurface="Smooth"
- smokepart.CanCollide=false
- smokepart.Transparency=1
- local weld=Instance.new("Weld")
- weld.Name="SmokePartWeld"
- weld.Part0=t
- weld.Part1=smokepart
- weld.C0=CFrame.new(0,-3.5,0)*CFrame.Angles(math.pi/4,0,0)
- weld.Parent=smokepart
- smokepart.Parent=sp
- smoke=Instance.new("Smoke")
- smoke.Enabled=t.Velocity.magnitude>speedforsmoke
- smoke.RiseVelocity=2
- smoke.Opacity=.25
- smoke.Size=.5
- smoke.Parent=smokepart
- h.Running:connect(function(speed)
- if smoke and smoke~=nil then
- smoke.Enabled=speed>speedforsmoke
- end
- end)
- end
- end
- while tool~=nil and tool.Parent==sp and h~=nil do
- sp.ChildRemoved:wait()
- end
- local h=sp:FindFirstChild("Humanoid")
- if h~=nil then
- h.WalkSpeed=16
- end
- end
- if smokepart~=nil then
- smokepart:remove()
- end
- script:remove()
- end))
- Script22.Disabled = true
- LocalScript23.Parent = Tool6
- table.insert(cors,sandbox(LocalScript23,function()
- --Script Edited By MasterBias
- sp=script.Parent
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- a.ChildAdded:wait()
- end
- return a:FindFirstChild(b)
- end
- speedboostscript=waitfor(sp,"SpeedBoostScript")
- function Equipped()
- if sp.Parent:FindFirstChild("SpeedBoostScript")==nil then
- local s=speedboostscript:clone()
- local tooltag=Instance.new("ObjectValue")
- tooltag.Name="ToolTag"
- tooltag.Value=sp
- tooltag.Parent=s
- s.Parent=sp.Parent
- s.Disabled=false
- local sound=sp.Handle:FindFirstChild("CoilSound")
- if sound~=nil then
- sound:Play()
- end
- end
- end
- sp.Equipped:connect(Equipped)
- end))
- Part24.Name = "Handle"
- Part24.Parent = Tool6
- Part24.CFrame = CFrame.new(13.8239956, 1.00001204, 9.13471794, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- Part24.Orientation = Vector3.new(90, 0, 0)
- Part24.Position = Vector3.new(13.8239956, 1.00001204, 9.13471794)
- Part24.Rotation = Vector3.new(90, 0, 0)
- Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part24.Size = Vector3.new(1, 2, 2)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Institutional white")
- Part24.Material = Enum.Material.DiamondPlate
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Institutional white")
- Part24.FormFactor = Enum.FormFactor.Plate
- Part24.formFactor = Enum.FormFactor.Plate
- SpecialMesh25.Parent = Part24
- SpecialMesh25.MeshId = "http://www.roblox.com/asset/?id=16606212"
- SpecialMesh25.Scale = Vector3.new(0.699999988, 0.699999988, 0.699999988)
- SpecialMesh25.VertexColor = Vector3.new(90, 90, 90)
- SpecialMesh25.TextureId = "rbxgameasset://Images/White Decal"
- SpecialMesh25.MeshType = Enum.MeshType.FileMesh
- Sound26.Name = "CoilSound"
- Sound26.Parent = Part24
- Sound26.SoundId = "http://www.roblox.com/asset/?id=16619553"
- Sound26.Volume = 1
- Sound27.Name = "CoilSound"
- Sound27.Parent = Part24
- Sound27.SoundId = "http://www.roblox.com/asset/?id=99173388"
- Sound27.Volume = 1
- Sound28.Name = "CoilSound"
- Sound28.Parent = Part24
- Sound28.SoundId = "http://www.roblox.com/asset/?id=16619553"
- Sound28.Volume = 1
- Sparkles29.Parent = Part24
- Sparkles29.Color = Color3.new(1.77083, 10.2, 1)
- Sparkles29.SparkleColor = Color3.new(1, 1, 1)
- ParticleEmitter30.Parent = Part24
- ParticleEmitter30.Texture = "rbxassetid://288392896"
- ParticleEmitter30.Size = NumberSequence.new(15,15)
- ParticleEmitter30.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter30.Rate = 5
- ParticleEmitter30.SpreadAngle = Vector2.new(20, 20)
- ParticleEmitter30.VelocitySpread = 20
- 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