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")
- Script1 = Instance.new("Script")
- Fire2 = Instance.new("Fire")
- Script3 = Instance.new("Script")
- IntValue4 = Instance.new("IntValue")
- LocalScript5 = Instance.new("LocalScript")
- Script6 = Instance.new("Script")
- Fire7 = Instance.new("Fire")
- PointLight8 = Instance.new("PointLight")
- Smoke9 = Instance.new("Smoke")
- Part10 = Instance.new("Part")
- Sound11 = Instance.new("Sound")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Tool0.Name = "Flare Gun"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://444145395"
- Tool0.CanBeDropped = false
- Tool0.Grip = CFrame.new(0, -0.400000006, 0.0500000007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool0.GripPos = Vector3.new(0, -0.400000006, 0.0500000007)
- Tool0.ToolTip = "Flare Gun"
- Script1.Name = "Paintball"
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- --rbxsig%leIitay5G0xoc8QCL8LmFwhHlFf0gaAxhRmYajmRNYlypcjE9UWOAafcMqsgQJluLLp7bYlhQuW0emM+jY9aaT3p9IzaMnvGt32VUo6nPwB75YmXE7Lhb3U9VVlti1RSAtjqVlW8El5KbJ+0aruJll3DbbiU8RTnVR7dv/TQycY=%
- --rbxassetid%1014541%
- ball = script.Parent
- damage = 10
- function onTouched(hit)
- script.Parent.Velocity = script.Parent.Velocity*0.7
- local humanoid = hit.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- tagHumanoid(humanoid)
- humanoid:TakeDamage(damage)
- if humanoid.Parent.Torso:FindFirstChild("FlareFire") then
- humanoid.Parent.Torso.FlareFire.Burner.Timer.Value = 6
- else
- local fiery = script.FlareFire:clone()
- fiery.Parent = humanoid.Parent.Torso
- fiery.Enabled = true
- fiery.Burner.Disabled = false
- end
- wait(2)
- untagHumanoid(humanoid)
- end
- end
- function tagHumanoid(humanoid)
- -- todo: make tag expire
- local tag = ball:findFirstChild("creator")
- if tag ~= nil then
- local new_tag = tag:clone()
- new_tag.Parent = humanoid
- end
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:findFirstChild("creator")
- if tag ~= nil then
- tag.Parent = nil
- end
- end
- end
- connection = ball.Touched:connect(onTouched)
- end))
- Script1.Disabled = true
- Fire2.Name = "FlareFire"
- Fire2.Parent = Script1
- Fire2.Color = Color3.new(1, 0.333333, 0)
- Fire2.Enabled = false
- Fire2.Size = 7
- Fire2.Heat = 5
- Fire2.SecondaryColor = Color3.new(1, 0.666667, 0)
- Fire2.size = 7
- Script3.Name = "Burner"
- Script3.Parent = Fire2
- table.insert(cors,sandbox(Script3,function()
- local looping = true
- while looping do
- if script.Timer.Value >= 1 then
- script.Parent.Parent.Parent.Humanoid:TakeDamage(4)
- script.Timer.Value = script.Timer.Value - 1
- else
- looping = false
- end
- wait(1.5)
- end
- script.Parent:Destroy()
- end))
- Script3.Disabled = true
- IntValue4.Name = "Timer"
- IntValue4.Parent = Script3
- IntValue4.Value = 6
- LocalScript5.Name = "Local Gui"
- LocalScript5.Parent = Tool0
- LocalScript5.LinkedSource = "http://www.roblox.com/asset/?id=1014540"
- Script6.Name = "PaintballShooter"
- Script6.Parent = Tool0
- table.insert(cors,sandbox(Script6,function()
- Tool = script.Parent
- colors = {21}
- function fire(v)
- Tool.Handle.Fire:play()
- local vCharacter = Tool.Parent
- local vPlayer = game.Players:playerFromCharacter(vCharacter)
- local missile = Instance.new("Part")
- local spawnPos = vCharacter.PrimaryPart.Position
- spawnPos = spawnPos + (v * 8)
- missile.Position = spawnPos
- missile.Size = Vector3.new(1,1,1)
- missile.Velocity = v * 200
- missile.BrickColor = BrickColor.new(colors[math.random(1, #colors)])
- missile.Shape = 0
- missile.BottomSurface = 0
- missile.TopSurface = 0
- missile.Name = "Paintball"
- missile.Elasticity = 0
- missile.Reflectance = 0
- missile.Friction = .9
- missile.Material = "Neon"
- local trailparticle = script.Fire:clone()
- trailparticle.Parent = missile
- trailparticle.Enabled = true
- local glowy = script.Light:clone()
- glowy.Parent = missile
- glowy.Enabled = true
- local emergency = script.Smoke:clone()
- emergency.Parent = missile
- emergency.Enabled = true
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,65,0)
- force.Parent = missile
- game.Debris:AddItem(missile, 5)
- local new_script = script.Parent.Paintball:clone()
- new_script.Disabled = false
- new_script.Parent = missile
- local creator_tag = Instance.new("ObjectValue")
- creator_tag.Value = vPlayer
- creator_tag.Name = "creator"
- creator_tag.Parent = missile
- missile.Parent = game.Workspace
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.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
- fire(lookAt)
- wait(4)
- Tool.Enabled = true
- end
- script.Parent.Activated:connect(onActivated)
- end))
- Fire7.Parent = Script6
- Fire7.Color = Color3.new(1, 0, 0)
- Fire7.Enabled = false
- Fire7.Size = 10
- Fire7.Heat = 0
- Fire7.SecondaryColor = Color3.new(1, 0, 0)
- Fire7.size = 10
- PointLight8.Name = "Light"
- PointLight8.Parent = Script6
- PointLight8.Color = Color3.new(1, 0, 0)
- PointLight8.Enabled = false
- PointLight8.Range = 30
- PointLight8.Shadows = true
- Smoke9.Parent = Script6
- Smoke9.Color = Color3.new(1, 0, 0)
- Smoke9.Enabled = false
- Smoke9.Size = 2
- Smoke9.Opacity = 1
- Smoke9.RiseVelocity = 0
- Part10.Name = "Handle"
- Part10.Parent = Tool0
- Part10.CFrame = CFrame.new(-1.9000001, 0.49999997, 3.70000005, -1.00000024, -3.19019335e-08, 2.60770321e-07, -3.18550661e-08, 0.99999994, 1.30739863e-12, -2.60770321e-07, 2.14413376e-10, -1.00000024)
- Part10.Orientation = Vector3.new(0, 180, 0)
- Part10.Position = Vector3.new(-1.9000001, 0.49999997, 3.70000005)
- Part10.Rotation = Vector3.new(-180, 0, 180)
- Part10.Size = Vector3.new(0.200000033, 1, 1.39999986)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.Locked = true
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.FormFactor = Enum.FormFactor.Custom
- Part10.formFactor = Enum.FormFactor.Custom
- Sound11.Name = "Fire"
- Sound11.Parent = Part10
- Sound11.SoundId = "http://www.roblox.com/asset/?id=142241347"
- Sound11.Volume = 1
- SpecialMesh12.Parent = Part10
- SpecialMesh12.MeshId = "rbxassetid://443983595"
- SpecialMesh12.Scale = Vector3.new(0.0140000004, 0.0140000004, 0.0140000004)
- SpecialMesh12.TextureId = "rbxassetid://443983604"
- SpecialMesh12.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- 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