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")
- Part1 = Instance.new("Part")
- Script2 = Instance.new("Script")
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.Rotation = Vector3.new(-14.2999992, -85.4599991, -14.25)
- Part1.Size = Vector3.new(1, 1, 0.5)
- Part1.CFrame = CFrame.new(0.758632243, 2.48765349, 0.0093132779, 0.0767191127, 0.0194891095, -0.99686259, 2.39853453e-08, 0.999809146, 0.0195464194, 0.997052729, -0.00149958208, 0.0767045021)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Position = Vector3.new(0.758632243, 2.48765349, 0.0093132779)
- Part1.Orientation = Vector3.new(-1.12, -85.5999985, 0)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Script2.Parent = Part1
- table.insert(cors,sandbox(Script2,function()
- function onTouch(part)
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- if (humanoid ~= nil) then -- if a humanoid exists, then
- humanoid.Health = 0 -- damage the humanoid
- end
- end
- script.Parent.Touched:connect(onTouch)
- end))
- 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