Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created with PenguinAnonymous's compiler
- --PenguinAnonymous is not responsible for damages caused to your game
- --This plugin does not remove things
- --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
- --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
- --Thank you for using my plugin and enjoy :)
- --It is free to use
- --If you use this plugin to create your own, please give me credit
- --Errors:
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("Sound")
- o4 = Instance.new("SpecialMesh")
- o5 = Instance.new("Sound")
- o6 = Instance.new("Sound")
- o7 = Instance.new("Fire")
- o8 = Instance.new("PointLight")
- o9 = Instance.new("Smoke")
- o10 = Instance.new("ParticleEmitter")
- o11 = Instance.new("PointLight")
- o12 = Instance.new("ParticleEmitter")
- o13 = Instance.new("LocalScript")
- o14 = Instance.new("Animation")
- o15 = Instance.new("Animation")
- o16 = Instance.new("Animation")
- o17 = Instance.new("Script")
- o18 = Instance.new("ParticleEmitter")
- o19 = Instance.new("PointLight")
- o20 = Instance.new("ParticleEmitter")
- o1.Name = "ChargedFireball"
- o1.Parent = mas
- o1.TextureId = "http://www.roblox.com/asset/?id=188445129"
- o1.GripRight = Vector3.new(0, -1, 0)
- o1.GripUp = Vector3.new(1, 0, 0)
- o1.ToolTip = "Fireball"
- o1.CanBeDropped = false
- o2.Name = "Handle"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Br. yellowish orange")
- o2.Transparency = 1
- o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
- o2.Rotation = Vector3.new(-90, 0, -90)
- o2.RotVelocity = Vector3.new(1, 1, 1)
- o2.Locked = true
- o2.FormFactor = Enum.FormFactor.Symmetric
- o2.Shape = Enum.PartType.Ball
- o2.Size = Vector3.new(1, 1, 1)
- o2.CFrame = CFrame.new(4.70000029, 2086, -3.10000014, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
- o2.Position = Vector3.new(4.70000029, 2086, -3.10000014)
- o2.Orientation = Vector3.new(-90, -90, 0)
- o2.Color = Color3.new(0.886275, 0.607843, 0.25098)
- o3.Name = "ExplodeSound"
- o3.Parent = o2
- o3.SoundId = "http://www.roblox.com/asset/?id=130792180"
- o3.Volume = 1
- o4.Parent = o2
- o4.MeshType = Enum.MeshType.Sphere
- o5.Name = "ChargeSound"
- o5.Parent = o2
- o5.SoundId = "http://www.roblox.com/asset/?id=142472270"
- o5.Volume = 1
- o6.Name = "FireSound"
- o6.Parent = o2
- o6.SoundId = "http://www.roblox.com/asset/?id=75422951"
- o6.Volume = 1
- o7.Parent = o2
- o7.Size = 3
- o7.Color = Color3.new(1, 0.576471, 0.294118)
- o7.Enabled = false
- o7.Heat = 0
- o7.Color = Color3.new(1, 0.576471, 0.294118)
- o8.Parent = o2
- o8.Color = Color3.new(0.92549, 0.545098, 0.27451)
- o8.Enabled = false
- o8.Range = 3
- o8.Shadows = true
- o8.Color = Color3.new(0.92549, 0.545098, 0.27451)
- o9.Parent = o2
- o9.Size = 0.10000000149012
- o9.Color = Color3.new(0.27451, 0.27451, 0.27451)
- o9.Enabled = false
- o9.Opacity = 0.20000000298023
- o9.RiseVelocity = 0
- o9.Color = Color3.new(0.27451, 0.27451, 0.27451)
- o10.Name = "Fire"
- o10.Parent = o2
- o10.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
- o10.Rotation = NumberRange.new(-180,180)
- o10.Size = NumberSequence.new(1.25,2)
- o10.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o10.LightEmission = 0.625
- o10.Texture = "http://www.roblox.com/asset/?id=301811459"
- o10.ZOffset = 1
- o10.Acceleration = Vector3.new(0, 12.5, 0)
- o10.Lifetime = NumberRange.new(0.20000000298023,0.60000002384186)
- o10.Rate = 50
- o10.RotSpeed = NumberRange.new(-180,180)
- o10.Speed = NumberRange.new(0,0)
- o10.VelocitySpread = 180
- o10.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o11.Name = "Light"
- o11.Parent = o2
- o11.Color = Color3.new(1, 0.654902, 0.235294)
- o11.Shadows = true
- o11.Color = Color3.new(1, 0.654902, 0.235294)
- o12.Name = "Sparks"
- o12.Parent = o2
- o12.Size = NumberSequence.new(0.625,0)
- o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o12.LightEmission = 1
- o12.Texture = "http://www.roblox.com/asset/?id=298984512"
- o12.ZOffset = 1
- o12.Acceleration = Vector3.new(0, 10, 0)
- o12.Lifetime = NumberRange.new(0.5,0.82499998807907)
- o12.Rate = 50
- o12.Speed = NumberRange.new(1,3)
- o12.VelocitySpread = 180
- o12.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o13.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- --Originally by Stickmasterluke, modified by BombHunter2000
- sp=script.Parent
- plr=game.Players.localPlayer
- --Bomb--
- damage={20,400}
- firerate=1.5
- bombvelocity=100
- chargetime=4
- extrasize=4
- --------
- rate=1/30
- debris=game:GetService("Debris")
- equipped=false
- check=true
- function waitfor(a,b)
- while a:FindFirstChild(b)==nil do
- a.ChildAdded:wait()
- end
- return a:FindFirstChild(b)
- end
- local anim2=waitfor(sp,"ChargeEnergyBall")
- local anim3=waitfor(sp,"RightSlash")
- function onEquipped(mouse)
- sp.Handle.Transparency=1
- equipped=true
- if chargeanim~=nil then
- chargeanim:Stop()
- end
- if mouse~=nil then
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- down=true
- local he=sp.Parent:FindFirstChild("Head")
- local hu=sp.Parent:FindFirstChild("Humanoid")
- if check and he and hu and hu.Health>0 then
- check=false
- mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
- starttime=tick()
- lv=he.CFrame.lookVector
- local mesh=sp.Handle:FindFirstChild("Mesh")
- if mesh~=nil then
- mesh.Scale=Vector3.new(1,1,1)
- end
- local fire=sp.Handle:FindFirstChild("Fire")
- if fire~=nil then
- fire.Size=0
- fire.Enabled=true
- end
- local light=sp.Handle:FindFirstChild("PointLight")
- if light~=nil then
- light.Range=0
- light.Enabled=true
- end
- local smoke=sp.Handle:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Size=0
- smoke.Enabled=true
- end
- if chargeanim~=nil then
- chargeanim:Stop()
- end
- chargeanim=hu:LoadAnimation(anim2)
- if chargeanim then
- chargeanim:Play()
- end
- local lastchargesound=0
- while down and equipped and tick()-starttime<chargetime and hu~=nil and hu.Health>0 do
- local percent=(tick()-starttime)/chargetime
- sp.Handle.Transparency=1+(math.random()*.3)
- local mesh=sp.Handle:FindFirstChild("Mesh")
- if mesh~=nil then
- mesh.Scale=Vector3.new(1,1,1)+(Vector3.new(1,1,1)*extrasize*percent)
- end
- local fire=sp.Handle:FindFirstChild("Fire")
- if fire~=nil then
- fire.Size=percent*extrasize*2
- end
- local light=sp.Handle:FindFirstChild("PointLight")
- if light~=nil then
- light.Range=percent*extrasize*4
- end
- local smoke=sp.Handle:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Size=percent*extrasize*.2
- end
- if tick()-lastchargesound>5 then
- lastchargesound=tick()
- local sound=sp.Handle:FindFirstChild("ChargeSound")
- if sound~=nil then
- sound:Play()
- end
- end
- wait()
- end
- sp.GripPos=Vector3.new(0,0,0)
- sp.Handle.Transparency=1
- throwanim=hu:LoadAnimation(anim3)
- if throwanim then
- throwanim:Play(0,1,8)
- end
- local sound=sp.Handle:FindFirstChild("ChargeSound")
- if sound~=nil then
- sound:Stop()
- end
- local sound=sp.Handle:FindFirstChild("FireSound")
- if sound~=nil then
- sound:Play()
- end
- local fire=sp.Handle:FindFirstChild("Fire")
- if fire~=nil then
- fire.Enabled=false
- end
- local smoke=sp.Handle:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Enabled=false
- end
- local light=sp.Handle:FindFirstChild("PointLight")
- if light~=nil then
- light.Enabled=false
- end
- local shot=sp.Handle:clone()
- if chargeanim~=nil then
- chargeanim:Stop()
- end
- local fire=shot:FindFirstChild("Fire")
- if fire~=nil then
- fire.Enabled=true
- end
- local smoke=shot:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Enabled=true
- end
- local light=shot:FindFirstChild("PointLight")
- if light~=nil then
- light.Enabled=true
- end
- local percent=math.min(math.max((tick()-starttime)/chargetime,0),1)
- local size=(1+(extrasize*percent))
- shot.Size=Vector3.new(1,1,1)*size
- shot.Mesh.Scale=Vector3.new(1,1,1)*(size/shot.Size.Y)
- shot.Name="Effect"
- shot.CanCollide=false
- shot.Transparency=1
- if mouse~=nil then
- shot.Velocity=((mouse.Hit.p-shot.Position).unit)*bombvelocity
- else
- shot.Velocity=lv*bombvelocity
- end
- shot.RotVelocity=Vector3.new(math.random()-.5,math.random()-.5,math.random()-.5)*20
- local bf=Instance.new("BodyForce")
- bf.force=Vector3.new(0,shot:GetMass()*196.2,0)
- bf.Parent=shot
- shot.Touched:connect(function(hit)
- if shot~=nil and shot.Transparency~=10 and hit~=nil and string.lower(string.sub(hit.Name,1,6))~="effect" then
- if not hit:IsDescendantOf(sp.Parent) then
- local hum=hit.Parent:FindFirstChild("Humanoid")
- if hum~=nil then
- for _,v in pairs(hum:GetChildren()) do
- if v~=nil and v.Name=="creator" then
- v:remove()
- end
- end
- local ct=Instance.new("ObjectValue")
- ct.Name="creator"
- ct.Value=game.Players.LocalPlayer
- ct.Parent=hum
- hum:TakeDamage(damage[1]+(percent*(damage[2]-damage[1])))
- end
- local explosion = Instance.new('Explosion')
- explosion.BlastPressure = percent*extrasize*5
- explosion.BlastRadius = percent*extrasize*2
- explosion.Position = shot.Position
- explosion.Parent = game.Workspace
- local sound=shot:FindFirstChild("ExplodeSound")
- if sound~=nil then
- sound.Volume=.5+(.5*percent)
- sound:Play()
- end
- shot.Transparency=1
- shot.Anchored=true
- local fire=shot:FindFirstChild("Fire")
- if fire~=nil then
- fire.Enabled=false
- end
- local smoke=shot:FindFirstChild("Smoke")
- if smoke~=nil then
- smoke.Enabled=false
- end
- local light=shot:FindFirstChild("PointLight")
- if light~=nil then
- light.Enabled=false
- end
- wait(.1)
- if shot~=nil then
- shot:remove()
- end
- end
- end
- end)
- debris:AddItem(shot,14)
- shot.Parent=game.Workspace
- wait(firerate)
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- check=true
- end
- end)
- mouse.Button1Up:connect(function()
- down=false
- end)
- end
- end
- function onUnequipped()
- equipped=false
- end
- -- Waits for the child of the specified parent
- local function WaitForChild(parent, childName)
- while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
- return parent[childName]
- end
- local Tool = script.Parent
- local Animations = {}
- local MyHumanoid
- local MyCharacter
- local function PlayAnimation(animationName)
- if Animations[animationName] then
- Animations[animationName]:Play()
- end
- end
- local function StopAnimation(animationName)
- if Animations[animationName] then
- Animations[animationName]:Stop()
- end
- end
- function OnEquipped(mouse)
- MyCharacter = Tool.Parent
- MyHumanoid = WaitForChild(MyCharacter, 'Humanoid')
- if MyHumanoid then
- Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool, 'IdleAnim3'))
- end
- PlayAnimation('IdleAnim')
- end
- function OnUnequipped()
- for animName, _ in pairs(Animations) do
- StopAnimation(animName)
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Unequipped:connect(OnUnequipped)
- sp.Equipped:connect(onEquipped)
- sp.Unequipped:connect(onUnequipped)
- end,o13)
- end))
- o14.Name = "ChargeEnergyBall"
- o14.Parent = o1
- o14.AnimationId = "http://www.roblox.com/Asset?ID=77320917"
- o15.Name = "IdleAnim3"
- o15.Parent = o1
- o15.AnimationId = "http://www.roblox.com/asset/?id=69427262"
- o16.Name = "RightSlash"
- o16.Parent = o1
- o16.AnimationId = "http://www.roblox.com/asset?id=187564515"
- o17.Name = "FireTool"
- o17.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- -- Scripted by duncan778
- local Tool = script.Parent;
- enabled = true
- function fire(v)
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- local spawnPos = Tool.Handle.Position
- spawnPos = spawnPos + (v * 4)
- missile.Position = spawnPos
- missile.Size = Vector3.new(1,1,1)
- missile.Velocity = v * 85
- missile.Shape = 0
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Firebolt"
- missile.Transparency = 1
- missile.CanCollide = false
- local f = script.Fire:clone()
- f.Parent = missile
- f.Enabled = true
- local s = script.Sparks:clone()
- s.Parent = missile
- s.Enabled = true
- local l = script.Light:clone()
- l.Parent = missile
- l.Enabled = true
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,100,0)
- force.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- local new_script = Tool.BurnScript:clone()
- new_script.Parent = missile
- new_script.Disabled = false
- local CreatorTag = Instance.new("StringValue")
- CreatorTag.Name = "CreatorTag"
- CreatorTag.Value = Tool.Parent.Name
- CreatorTag.Parent = missile
- missile.Parent = game.Workspace
- end
- function gunUp()
- Tool.Handle.Fire.Enabled = false
- Tool.Handle.Sparks.Enabled = false
- Tool.Handle.Light.Enabled = false
- end
- function gunOut()
- Tool.Handle.Fire.Enabled = true
- Tool.Handle.Sparks.Enabled = true
- Tool.Handle.Light.Enabled = true
- end
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- local targetPos = humanoid.TargetPoint
- local lookAt = (targetPos - character.Head.Position).unit
- local reload = 5
- gunUp()
- fire(lookAt)
- wait(reload)
- gunOut()
- wait()
- enabled = true
- end
- script.Parent.Activated:connect(onActivated)
- end,o17)
- end))
- o18.Name = "Sparks"
- o18.Parent = o17
- o18.Size = NumberSequence.new(0.625,0)
- o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o18.Enabled = false
- o18.LightEmission = 1
- o18.Texture = "http://www.roblox.com/asset/?id=298984512"
- o18.ZOffset = 1
- o18.Acceleration = Vector3.new(0, -5, 0)
- o18.Lifetime = NumberRange.new(1,2)
- o18.Rate = 75
- o18.Speed = NumberRange.new(6,8)
- o18.VelocitySpread = 65
- o18.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o19.Name = "Light"
- o19.Parent = o17
- o19.Color = Color3.new(1, 0.654902, 0.235294)
- o19.Brightness = 1.5
- o19.Range = 12
- o19.Shadows = true
- o19.Color = Color3.new(1, 0.654902, 0.235294)
- o20.Name = "Fire"
- o20.Parent = o17
- o20.Transparency = NumberSequence.new(1,0.76875001192093,0.59375,0.41874998807907,0.28749996423721,0.28125,0.34999996423721,0.54999995231628,1)
- o20.Rotation = NumberRange.new(-180,180)
- o20.Size = NumberSequence.new(2.5,3.75)
- o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- o20.Enabled = false
- o20.LightEmission = 0.625
- o20.Texture = "http://www.roblox.com/asset/?id=301811459"
- o20.ZOffset = 1
- o20.Acceleration = Vector3.new(0, 12.5, 0)
- o20.Lifetime = NumberRange.new(0.40000000596046,0.80000001192093)
- o20.Rate = 125
- o20.RotSpeed = NumberRange.new(-180,180)
- o20.Speed = NumberRange.new(0,0)
- o20.VelocitySpread = 180
- o20.Color = ColorSequence.new(Color3.new(1, 0.784314, 0.592157),Color3.new(0.976471, 0.52549, 0.129412))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Add Comment
Please, Sign In to add comment