Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Extingusher script
- --Written by filipono120 studios
- --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
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local backpack = plr.Backpack
- local char = plr.Character
- local debris = game:GetService("Debris")
- local equipped = nil;
- local click = nil;
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Tool0.Name = "Extinguisher"
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(0, 4.30000067, -0.0500000007, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part1.Position = Vector3.new(0, 4.30000067, -0.0500000007)
- Part1.Size = Vector3.new(0.495000005, 1.02800012, 0.55399996)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://433101886"
- SpecialMesh2.Scale = Vector3.new(0.200000003, 0.167426735, 0.169418961)
- SpecialMesh2.TextureId = "rbxassetid://433101903"
- SpecialMesh2.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
- Tool0.Equipped:Connect(function()
- equipped = true;
- end)
- Tool0.Unequipped:Connect(function()
- equipped = false;
- end)
- mouse.Button1Down:Connect(function()
- if equipped == true then
- click = true;
- while click == true do
- game:GetService("RunService").Heartbeat:Wait()
- local randomSize = math.random(.5, 1.9)
- local part = Instance.new("Part", workspace)
- part.Shape = Enum.PartType.Ball
- part.Size = Vector3.new(randomSize, randomSize, randomSize)
- part.BrickColor = BrickColor.new("Institutional white")
- part.Transparency = 0.661
- part.TopSurface = Enum.SurfaceType.Smooth
- part.BottomSurface = Enum.SurfaceType.Smooth
- part.CFrame = CFrame.new(Part1.CFrame.X, Part1.CFrame.Y + .3, Part1.CFrame.Z)
- local Body = Instance.new("BodyVelocity", part)
- Body.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
- Body.P = 1000
- Body.Velocity = Vector3.new(Part1.CFrame.LookVector.X * 100, Part1.CFrame.LookVector.Y, Part1.CFrame.LookVector.Z * 100)
- debris:AddItem(Body, .223)
- debris:AddItem(part, 2.5)
- end
- end
- end)
- mouse.Button1Up:Connect(function()
- if equipped == true then
- click = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement