cat568

Untitled

Dec 21st, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  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. Part0 = Instance.new("Part")
  20. Script1 = Instance.new("Script")
  21. Part0.Name = "DeletePart"
  22. Part0.Parent = mas
  23. Part0.CFrame = CFrame.new(-109, 0.5, 173, 1.00000012, 0, 0, 0, 1, 1.69406589e-21, 0, 1.69406589e-21, 1.00000012)
  24. Part0.Position = Vector3.new(-109, 0.5, 173)
  25. Part0.Color = Color3.new(0.768627, 0.156863, 0.109804)
  26. Part0.Size = Vector3.new(4, 1, 2)
  27. Part0.BrickColor = BrickColor.new("Bright red")
  28. Part0.brickColor = BrickColor.new("Bright red")
  29. Script1.Parent = Part0
  30. table.insert(cors,sandbox(Script1,function()
  31. function onTouched(hit)
  32. hit:remove()
  33. end
  34.  
  35. connection = script.Parent.Touched:connect(onTouched)
  36.  
  37. end))
  38. for i,v in pairs(mas:GetChildren()) do
  39. v.Parent = workspace
  40. pcall(function() v:MakeJoints() end)
  41. end
  42. mas:Destroy()
  43. for i,v in pairs(cors) do
  44. spawn(function()
  45. pcall(v)
  46. end)
  47. end
Advertisement
Add Comment
Please, Sign In to add comment