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"))
- LocalScript0 = Instance.new("LocalScript")
- Sparkles1 = Instance.new("Sparkles")
- LocalScript0.Name = "FuncDeath"
- LocalScript0.Parent = mas
- table.insert(cors,sandbox(LocalScript0,function()
- local character = game.Players.LocalPlayer.Character
- local player = game.Players.LocalPlayer
- local char = game.Players.LocalPlayer.Character
- game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(death)
- if game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
- local i = script.Death:Clone()
- local o = script.Death:Clone()
- local p = script.Death:Clone()
- local a = script.Death:Clone()
- local s = script.Death:Clone()
- local d = script.Death:Clone()
- i.Parent = character.Torso
- o.Parent = character:findFirstChild("Right Arm")
- p.Parent = character:findFirstChild("Right Leg")
- a.Parent = character:FindFirstChild("Left Arm")
- s.Parent = character:FindFirstChild("Left Leg")
- -- Limbs Disappear
- character:findFirstChild("Right Arm").Transparency = 1
- character:findFirstChild("Right Leg").Transparency = 1
- character:FindFirstChild("Left Arm").Transparency = 1
- character:FindFirstChild("Left Leg").Transparency = 1
- -- Clothing Disappear
- if char:FindFirstChild("Pants") then
- char.Pants:Destroy()
- if char:FindFirstChild("Shirt") then
- char.Shirt:Destroy()
- if char:FindFirstChild("Hat") then
- char.Hat:Destroy()
- if char:FindFirstChild("Hat") then
- char.Hat:Destroy()
- if char:FindFirstChild("Hat") then
- char.Hat:Destroy()
- end
- end
- end
- end
- end
- end
- end)
- end))
- Sparkles1.Name = "Death"
- Sparkles1.Parent = LocalScript0
- Sparkles1.Color = Color3.new(0.222222, 7.84, 1)
- Sparkles1.SparkleColor = Color3.new(0.12549, 0.768628, 1)
- Sparkles1.Color = Color3.new(0.222222, 7.84, 1)
- 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
Add Comment
Please, Sign In to add comment