Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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"))
- Script0 = Instance.new("Script")
- Humanoid1 = Instance.new("Humanoid")
- Script0.Name = "Death effect"
- Script0.Parent = mas
- table.insert(cors,sandbox(Script0,function()
- game.Workspace.ChildAdded:connect(function(player)
- local human = player:FindFirstChild("Humanoid")
- if human ~= nil then
- human.Died:connect(function()
- local parts = player:GetChildren()
- for i,part in pairs(parts)do
- if part.Name == "Head" or parts.ClassName == "Accesory" or parts.ClassName == "Humanoid" then
- local model = Instance.new("Model")
- model.Name = part.Name
- local part2 = part:Clone()
- model.Parent = game.Workspace
- part2.Parent = model
- part2.Anchored = false
- part2.Transparency = 0.4
- part2.BrickColor = BrickColor.White()
- part2.CanCollide = false
- part2.CFrame = CFrame.new(part2.Position)
- local velocity = Instance.new("BodyVelocity")
- velocity.Parent = part2
- velocity.Velocity = Vector3.new(0,4,0)
- end
- end
- local getparts = game.Workspace:GetChildren()
- for i,part2 in pairs(getparts)do
- end
- while wait() do
- human = script.Humanoid:Clone()
- human.Parent = workspace.Head
- accesory = player:FindFirstChild("Accessory"):Clone()
- --e = script.Accessory
- --e.Orientation
- --e.Position
- --e.CFrame
- accesory.Parent =workspace.Head
- wait(8)
- local kill = game.Workspace:GetChildren()
- for i,p in pairs(kill)do
- if p.ClassName == "Model" then
- if p.Name =="Head" then
- p:Destroy()
- end
- end
- end
- end
- end)
- end
- end)
- end))
- Humanoid1.Parent = Script0
- 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
- mas = game.Players.LocalPlayer.Character
- SpecialMesh0 = Instance.new("SpecialMesh")
- Vector3Value1 = Instance.new("Vector3Value")
- Script2 = Instance.new("Script")
- Accessory3 = Instance.new("Accessory")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Vector3Value6 = Instance.new("Vector3Value")
- Part8 = Instance.new("Part")
- SpecialMesh9 = Instance.new("SpecialMesh")
- Vector3Value10 = Instance.new("Vector3Value")
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15392960"
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- Vector3Value10.Name = "OriginalSize"
- Vector3Value10.Parent = Part8
- Vector3Value10.Value = Vector3.new(2, 1, 1)
- Accessory3.Parent = mas
- Part8.Name = "Handle"
- Part8.Parent = Accessory3
- Part8.Rotation = Vector3.new(0, -54.0499992, 0)
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.Size = Vector3.new(2, 1, 1)
- Part8.CFrame = CFrame.new(-6.53000593, 23.7199993, -11.159996, 0.587041974, 0, -0.809556484, 0, 1, 0, 0.809556603, 0, 0.587041914)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Position = Vector3.new(-6.53000593, 23.7199993, -11.159996)
- Part8.Orientation = Vector3.new(0, -54.0499992, 0)
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15392960"
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- Vector3Value10.Name = "OriginalSize"
- Vector3Value10.Parent = Part8
- Vector3Value10.Value = Vector3.new(2, 1, 1)
- Part8.Name = "Handle"
- Part8.Parent = Accessory3
- Part8.Rotation = Vector3.new(0, -54.0499992, 0)
- Part8.FormFactor = Enum.FormFactor.Symmetric
- Part8.Size = Vector3.new(2, 1, 1)
- Part8.CFrame = CFrame.new(-6.53000593, 23.7199993, -11.159996, 0.587041974, 0, -0.809556484, 0, 1, 0, 0.809556603, 0, 0.587041914)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Position = Vector3.new(-6.53000593, 23.7199993, -11.159996)
- Part8.Orientation = Vector3.new(0, -54.0499992, 0)
- SpecialMesh9.Parent = Part8
- SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15392960"
- SpecialMesh9.MeshType = Enum.MeshType.FileMesh
- Vector3Value10.Name = "OriginalSize"
- Vector3Value10.Parent = Part8
- Vector3Value10.Value = Vector3.new(2, 1, 1)
- mas.Humanoid:Died(function()
- Accessory3:Clone().Parent = workspace.Head
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement