Advertisement
Animescapetower

Ded

Apr 2nd, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. function sandbox(var,func)
  6. local env = getfenv(func)
  7. local newenv = setmetatable({},{
  8. __index = function(self,k)
  9. if k=="script" then
  10. return var
  11. else
  12. return env[k]
  13. end
  14. end,
  15. })
  16. setfenv(func,newenv)
  17. return func
  18. end
  19. cors = {}
  20. mas = Instance.new("Model",game:GetService("Lighting"))
  21. Script0 = Instance.new("Script")
  22. Humanoid1 = Instance.new("Humanoid")
  23. Script0.Name = "Death effect"
  24. Script0.Parent = mas
  25. table.insert(cors,sandbox(Script0,function()
  26. game.Workspace.ChildAdded:connect(function(player)
  27. local human = player:FindFirstChild("Humanoid")
  28. if human ~= nil then
  29. human.Died:connect(function()
  30. local parts = player:GetChildren()
  31. for i,part in pairs(parts)do
  32. if part.Name == "Head" or parts.ClassName == "Accesory" or parts.ClassName == "Humanoid" then
  33. local model = Instance.new("Model")
  34. model.Name = part.Name
  35. local part2 = part:Clone()
  36.  
  37. model.Parent = game.Workspace
  38. part2.Parent = model
  39. part2.Anchored = false
  40. part2.Transparency = 0.4
  41. part2.BrickColor = BrickColor.White()
  42. part2.CanCollide = false
  43. part2.CFrame = CFrame.new(part2.Position)
  44.  
  45.  
  46. local velocity = Instance.new("BodyVelocity")
  47. velocity.Parent = part2
  48. velocity.Velocity = Vector3.new(0,4,0)
  49.  
  50.  
  51. end
  52. end
  53. local getparts = game.Workspace:GetChildren()
  54. for i,part2 in pairs(getparts)do
  55. end
  56. while wait() do
  57. human = script.Humanoid:Clone()
  58. human.Parent = workspace.Head
  59. accesory = player:FindFirstChild("Accessory"):Clone()
  60. --e = script.Accessory
  61. --e.Orientation
  62. --e.Position
  63. --e.CFrame
  64.  
  65.  
  66. accesory.Parent =workspace.Head
  67.  
  68.  
  69.  
  70. wait(8)
  71. local kill = game.Workspace:GetChildren()
  72.  
  73. for i,p in pairs(kill)do
  74. if p.ClassName == "Model" then
  75. if p.Name =="Head" then
  76. p:Destroy()
  77. end
  78. end
  79. end
  80. end
  81. end)
  82. end
  83. end)
  84.  
  85. end))
  86. Humanoid1.Parent = Script0
  87. for i,v in pairs(mas:GetChildren()) do
  88. v.Parent = workspace
  89. pcall(function() v:MakeJoints() end)
  90. end
  91. mas:Destroy()
  92. for i,v in pairs(cors) do
  93. spawn(function()
  94. pcall(v)
  95. end)
  96. end
  97.  
  98.  
  99. mas = game.Players.LocalPlayer.Character
  100. SpecialMesh0 = Instance.new("SpecialMesh")
  101. Vector3Value1 = Instance.new("Vector3Value")
  102. Script2 = Instance.new("Script")
  103. Accessory3 = Instance.new("Accessory")
  104. Part4 = Instance.new("Part")
  105. SpecialMesh5 = Instance.new("SpecialMesh")
  106. Vector3Value6 = Instance.new("Vector3Value")
  107.  
  108. Part8 = Instance.new("Part")
  109. SpecialMesh9 = Instance.new("SpecialMesh")
  110. Vector3Value10 = Instance.new("Vector3Value")
  111.  
  112. SpecialMesh9.Parent = Part8
  113. SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15392960"
  114. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  115. Vector3Value10.Name = "OriginalSize"
  116. Vector3Value10.Parent = Part8
  117. Vector3Value10.Value = Vector3.new(2, 1, 1)
  118.  
  119. Accessory3.Parent = mas
  120. Part8.Name = "Handle"
  121. Part8.Parent = Accessory3
  122. Part8.Rotation = Vector3.new(0, -54.0499992, 0)
  123. Part8.FormFactor = Enum.FormFactor.Symmetric
  124. Part8.Size = Vector3.new(2, 1, 1)
  125. Part8.CFrame = CFrame.new(-6.53000593, 23.7199993, -11.159996, 0.587041974, 0, -0.809556484, 0, 1, 0, 0.809556603, 0, 0.587041914)
  126. Part8.BottomSurface = Enum.SurfaceType.Smooth
  127. Part8.TopSurface = Enum.SurfaceType.Smooth
  128. Part8.Position = Vector3.new(-6.53000593, 23.7199993, -11.159996)
  129. Part8.Orientation = Vector3.new(0, -54.0499992, 0)
  130. SpecialMesh9.Parent = Part8
  131. SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15392960"
  132. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  133. Vector3Value10.Name = "OriginalSize"
  134. Vector3Value10.Parent = Part8
  135. Vector3Value10.Value = Vector3.new(2, 1, 1)
  136.  
  137. Part8.Name = "Handle"
  138. Part8.Parent = Accessory3
  139. Part8.Rotation = Vector3.new(0, -54.0499992, 0)
  140. Part8.FormFactor = Enum.FormFactor.Symmetric
  141. Part8.Size = Vector3.new(2, 1, 1)
  142. Part8.CFrame = CFrame.new(-6.53000593, 23.7199993, -11.159996, 0.587041974, 0, -0.809556484, 0, 1, 0, 0.809556603, 0, 0.587041914)
  143. Part8.BottomSurface = Enum.SurfaceType.Smooth
  144. Part8.TopSurface = Enum.SurfaceType.Smooth
  145. Part8.Position = Vector3.new(-6.53000593, 23.7199993, -11.159996)
  146. Part8.Orientation = Vector3.new(0, -54.0499992, 0)
  147. SpecialMesh9.Parent = Part8
  148. SpecialMesh9.MeshId = "http://www.roblox.com/asset/?id=15392960"
  149. SpecialMesh9.MeshType = Enum.MeshType.FileMesh
  150. Vector3Value10.Name = "OriginalSize"
  151. Vector3Value10.Parent = Part8
  152. Vector3Value10.Value = Vector3.new(2, 1, 1)
  153.  
  154. mas.Humanoid:Died(function()
  155. Accessory3:Clone().Parent = workspace.Head
  156. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement