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")
- LocalScript2 = Instance.new("LocalScript")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- StringValue5 = Instance.new("StringValue")
- Script6 = Instance.new("Script")
- Script7 = Instance.new("Script")
- Tool0.Name = "Kill"
- Tool0.Parent = mas
- Tool0.Grip = CFrame.new(0, 0.5, 0.100000001, 0.00502918055, 0.999987364, -2.41980124e-05, -2.42013066e-05, 2.43250979e-05, 1, 0.999987364, -0.00502919592, 2.4314586e-05)
- Tool0.GripForward = Vector3.new(2.41980124e-05, -1, -2.4314586e-05)
- Tool0.GripPos = Vector3.new(0, 0.5, 0.100000001)
- Tool0.GripRight = Vector3.new(0.00502918055, -2.42013066e-05, 0.999987364)
- Tool0.GripUp = Vector3.new(0.999987364, 2.43250979e-05, -0.00502919592)
- Script1.Name = "Main"
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- bin = script.Parent
- kill = script.Parent.Kill:clone()
- player = game.Players.LocalPlayer
- function onActivated()
- h = player.Character.Humanoid.TargetPoint
- b = kill:clone()
- b.Parent = game.Workspace
- b.CFrame = CFrame.new(h)
- b:findFirstChild("Owner").Value = player.Name
- end
- script.Parent.Activated:connect(onActivated)
- end))
- LocalScript2.Name = "Local Gui"
- LocalScript2.Parent = Tool0
- table.insert(cors,sandbox(LocalScript2,function()
- local Tool = script.Parent;
- function onEquippedLocal(mouse)
- if mouse == nil then return end
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- Tool.Equipped:connect(onEquippedLocal)
- end))
- Part3.Name = "Handle"
- Part3.Parent = Tool0
- Part3.CFrame = CFrame.new(-53, 1.67970109, -1.50222015, 1.04847568e-05, 0.999989331, 0.00462258654, 0.999989688, 1.04847568e-05, -0.00453626877, -0.00453626877, 0.00462258654, -0.999979019)
- Part3.Orientation = Vector3.new(0.25999999, 179.740005, 90)
- Part3.Position = Vector3.new(-53, 1.67970109, -1.50222015)
- Part3.Rotation = Vector3.new(179.740005, 0.25999999, -90)
- Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part3.Transparency = 1
- Part3.Size = Vector3.new(1, 2, 1)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really black")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really black")
- Part3.FormFactor = Enum.FormFactor.Symmetric
- Part3.formFactor = Enum.FormFactor.Symmetric
- Part4.Name = "Kill"
- Part4.Parent = Tool0
- Part4.CFrame = CFrame.new(1, 1.39999998, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(1, 1.39999998, 0)
- Part4.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part4.Transparency = 1
- Part4.Size = Vector3.new(6, 0.400000006, 6)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Black")
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Black")
- Part4.FormFactor = Enum.FormFactor.Plate
- Part4.formFactor = Enum.FormFactor.Plate
- StringValue5.Name = "Owner"
- StringValue5.Parent = Part4
- Script6.Name = "Kill"
- Script6.Parent = Part4
- table.insert(cors,sandbox(Script6,function()
- function onTouched(part)
- p = part.Parent
- if p == nil then return end
- h = part.Parent:findFirstChild("Humanoid")
- if h == nil then return end
- if p.Name == script.Parent.Owner.Value then return end
- h.Health = 0
- end
- script.Parent.Touched:connect(onTouched)
- end))
- Script7.Name = "Clean"
- Script7.Parent = Part4
- table.insert(cors,sandbox(Script7,function()
- wait(.1)
- script.Parent:remove()
- end))
- 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