Advertisement
Blueisim

Untitled

Aug 15th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. -- Created with Z_Vs M2S Plugin
  2. Create = function(itemClass,tabl)
  3. local item = Instance.new(itemClass)
  4. for i,v in pairs(tabl) do
  5. local a,b = ypcall(function() return item[i] end)
  6. if a then
  7. item[i] = tabl[i]
  8. end
  9. end
  10. return item
  11. end
  12. function runDummyScript(f,scri)
  13. local oldenv = getfenv(f)
  14. local newenv = setmetatable({}, {
  15. __index = function(_, k)
  16. if k:lower() == 'script' then
  17. return scri
  18. else
  19. return oldenv[k]
  20. end
  21. end
  22. })
  23. setfenv(f, newenv)
  24. ypcall(function() f() end)
  25. end
  26. cors = {}
  27. mas = Instance.new("Model",game:GetService("Lighting"))
  28. mas.Name = "CompiledModel"
  29. o1 = Create("Model",{
  30. ["Parent"] = mas,
  31. })
  32. o2 = Create("Part",{
  33. ["Parent"] = o1,
  34. ["Position"] = Vector3.new(-6.19999981, 2.50002384, -10.7000008),
  35. ["CFrame"] = CFrame.new(-6.19999981, 2.50002384, -10.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  36. ["Size"] = Vector3.new(4, 1, 0.200000003),
  37. })
  38. o3 = Create("Part",{
  39. ["Parent"] = o1,
  40. ["Position"] = Vector3.new(-6.09999943, 1.00001299, -10.7000008),
  41. ["CFrame"] = CFrame.new(-6.09999943, 1.00001299, -10.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  42. ["Size"] = Vector3.new(0.999999881, 2, 0.200000003),
  43. })
  44. o4 = Create("Part",{
  45. ["Parent"] = o1,
  46. ["Position"] = Vector3.new(-6.09999943, 6.30001354, -10.7000008),
  47. ["CFrame"] = CFrame.new(-6.09999943, 6.30001354, -10.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  48. ["Size"] = Vector3.new(0.999999881, 6.5999999, 0.200000003),
  49. })
  50.  
  51. mas.Parent = workspace
  52. mas:MakeJoints()
  53. local mas1 = mas:GetChildren()
  54. for i=1,#mas1 do
  55. mas1[i].Parent = workspace
  56. ypcall(function() mas1[i]:MakeJoints() end)
  57. end
  58. mas:Destroy()
  59. for i=1,#cors do
  60. coroutine.resume(cors[i])
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement