Advertisement
Guest User

LoopKill

a guest
Sep 18th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1.  
  2. --Yeet
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. SpawnLocation0 = Instance.new("SpawnLocation")
  20. Decal1 = Instance.new("Decal")
  21. Script2 = Instance.new("Script")
  22. Weld3 = Instance.new("Weld")
  23. SpawnLocation0.Parent = mas
  24. SpawnLocation0.CFrame = CFrame.new(0, 0.599999011, -64, -1, 0, -0, -0, 1, -0, -0, 0, -1)
  25. SpawnLocation0.Orientation = Vector3.new(0, -180, 0)
  26. SpawnLocation0.Position = Vector3.new(0, 0.599999011, -64)
  27. SpawnLocation0.Rotation = Vector3.new(180, 0, -180)
  28. SpawnLocation0.Size = Vector3.new(6, 1.20000005, 6)
  29. SpawnLocation0.Anchored = true
  30. SpawnLocation0.BackSurface = Enum.SurfaceType.Weld
  31. SpawnLocation0.BottomSurface = Enum.SurfaceType.Weld
  32. SpawnLocation0.FrontSurface = Enum.SurfaceType.Weld
  33. SpawnLocation0.LeftSurface = Enum.SurfaceType.Weld
  34. SpawnLocation0.RightSurface = Enum.SurfaceType.Weld
  35. SpawnLocation0.TopSurface = Enum.SurfaceType.Smooth
  36. Decal1.Parent = SpawnLocation0
  37. Decal1.Texture = "rbxasset://Textures/SpawnLocation.png"
  38. Decal1.Face = Enum.NormalId.Top
  39. Script2.Name = "Deadly"
  40. Script2.Parent = SpawnLocation0
  41. table.insert(cors,sandbox(Script2,function()
  42. function onTouched(hit)
  43. local human = hit.Parent:findFirstChild("Humanoid")
  44. if (human ~= nil) then
  45. human.Health = human.Health - 999999999999999999999999999999999999999999999999999999999999
  46. end
  47. end
  48.  
  49. --if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block
  50. -- connection = script.Parent.Touched:connect(onTouched)
  51. --end
  52. script.Parent.Touched:connect(onTouched)
  53.  
  54. end))
  55. Weld3.Parent = SpawnLocation0
  56. Weld3.C0 = CFrame.new(0, -0.600000024, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
  57. Weld3.C1 = CFrame.new(0, 9.99999905, -64, -1, -0, -0, -0, -0, -1, -0, -1, -0)
  58. Weld3.Part0 = SpawnLocation0
  59. Weld3.Part1 = nil
  60. Weld3.part1 = nil
  61. for i,v in pairs(mas:GetChildren()) do
  62. v.Parent = workspace
  63. pcall(function() v:MakeJoints() end)
  64. end
  65. mas:Destroy()
  66. for i,v in pairs(cors) do
  67. spawn(function()
  68. pcall(v)
  69. end)
  70. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement