Advertisement
TheFlamingBlaster

anime window (requested by a friend of mine) (ROBLOX)

Oct 10th, 2016
1,694
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.35 KB | None | 0 0
  1. local namer = tostring(math.random(1,2500))
  2.  
  3. function tvmodel()
  4. -- Created with Z_Vs M2S Plugin  -- Created with Z_Vs M2S Plugin
  5.  
  6. Create = function(itemClass,tabl)
  7. local item = Instance.new(itemClass)
  8. for i,v in pairs(tabl) do
  9. local a,b = ypcall(function() return item[i] end)
  10. if a then
  11. item[i] = tabl[i]
  12. end
  13. end
  14. return item
  15. end
  16. function runDummyScript(f,scri)
  17. local oldenv = getfenv(f)
  18. local newenv = setmetatable({}, {
  19. __index = function(_, k)
  20. if k:lower() == 'script' then
  21. return scri
  22. else
  23. return oldenv[k]
  24. end
  25. end
  26. })
  27. setfenv(f, newenv)
  28. ypcall(function() f() end)
  29. end
  30. cors = {}
  31. mas = Instance.new("Model",game:GetService("Lighting"))
  32. mas.Name = "CompiledModel"
  33. o1 = Create("Model",{
  34. ["Name"] = namer,
  35. ["Parent"] = mas,
  36. })
  37. o2 = Create("Part",{
  38. ["Parent"] = o1,
  39. ["Position"] = Vector3.new(-44, 5.50001383, -52),
  40. ["Rotation"] = Vector3.new(-0, 0, 90),
  41. ["CFrame"] = CFrame.new(-44, 5.50001383, -52, 0, -1, 0, 1, 0, 0, 0, 0, 1),
  42. ["Size"] = Vector3.new(10, 1, 2),
  43. ["BackSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  44. ["BottomSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  45. ["FrontSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  46. ["LeftSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  47. ["RightSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  48. ["TopSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  49. })
  50. o3 = Create("Part",{
  51. ["Parent"] = o1,
  52. ["Position"] = Vector3.new(-49.4999924, 10.0000143, -52),
  53. ["Rotation"] = Vector3.new(-90, 0, -0),
  54. ["CFrame"] = CFrame.new(-49.4999924, 10.0000143, -52, 1, 0, 0, 0, 0, 1, 0, -1, 0),
  55. ["Size"] = Vector3.new(10, 2, 1),
  56. ["BackSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  57. ["BottomSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  58. ["FrontSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  59. ["LeftSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  60. ["RightSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  61. ["TopSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  62. })
  63. o4 = Create("Part",{
  64. ["Parent"] = o1,
  65. ["Position"] = Vector3.new(-49.4999924, 1.00002003, -52),
  66. ["Rotation"] = Vector3.new(-90, 0, -0),
  67. ["CFrame"] = CFrame.new(-49.4999924, 1.00002003, -52, 1, 0, 0, 0, 0, 1, 0, -1, 0),
  68. ["Size"] = Vector3.new(10, 2, 1),
  69. ["BackSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  70. ["BottomSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  71. ["FrontSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  72. ["LeftSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  73. ["RightSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  74. ["TopSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  75. })
  76. o5 = Create("Part",{
  77. ["Parent"] = o1,
  78. ["Position"] = Vector3.new(-53.9999924, 5.50001717, -52),
  79. ["Rotation"] = Vector3.new(-90, 0, -0),
  80. ["CFrame"] = CFrame.new(-53.9999924, 5.50001717, -52, 1, 0, 0, 0, 0, 1, 0, -1, 0),
  81. ["Size"] = Vector3.new(1, 2, 10),
  82. ["BackSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  83. ["BottomSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  84. ["FrontSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  85. ["LeftSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  86. ["RightSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  87. ["TopSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  88. })
  89. o6 = Create("Part",{
  90. ["Parent"] = o1,
  91. ["Position"] = Vector3.new(-49, 5.50001001, -53.5),
  92. ["Rotation"] = Vector3.new(-90, 0, -0),
  93. ["CFrame"] = CFrame.new(-49, 5.50001001, -53.5, 1, 0, 0, 0, 0, 1, 0, -1, 0),
  94. ["Size"] = Vector3.new(11, 1, 10),
  95. ["BackSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  96. ["BottomSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  97. ["FrontSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  98. ["LeftSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  99. ["RightSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  100. ["TopSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  101. })
  102. o7 = Create("Part",{
  103. ["Name"] = "MainTVPart",
  104. ["Parent"] = o1,
  105. ["BrickColor"] = BrickColor.new("Really black"),
  106. ["Reflectance"] = 0.10000000149012,
  107. ["Position"] = Vector3.new(-49, 5.50001001, -52.5),
  108. ["Rotation"] = Vector3.new(-90, 0, -0),
  109. ["CFrame"] = CFrame.new(-49, 5.50001001, -52.5, 1, 0, 0, 0, 0, 1, 0, -1, 0),
  110. ["Size"] = Vector3.new(9, 1, 8),
  111. ["BackSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  112. ["BottomSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  113. ["FrontSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  114. ["LeftSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  115. ["RightSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  116. ["TopSurface"] = Enum.SurfaceType.SmoothNoOutlines,
  117. ["Color"] = Color3.new(0.0666667, 0.0666667, 0.0666667),
  118. })
  119.  
  120. mas.Parent = workspace
  121. mas:MakeJoints()
  122. local mas1 = mas:GetChildren()
  123. for i=1,#mas1 do
  124.     mas1[i].Parent = workspace
  125.     ypcall(function() mas1[i]:MakeJoints() end)
  126. end
  127. mas:Destroy()
  128. for i=1,#cors do
  129. coroutine.resume(cors[i])
  130. end
  131.  
  132. local tv = o7
  133. for index, child in pairs(tv.Parent:GetChildren()) do
  134.     child.Anchored = true
  135. end
  136.  
  137. local tvdecal = Instance.new("Decal",tv)
  138. tvdecal.Face = "Bottom"
  139. local decals = {471768416 - 1,501241701,437235568,361696784 - 1,313827369,252258081,313551476 - 1}
  140. for index, v in pairs(decals) do
  141.     game:GetService("ContentProvider"):Preload("http://www.roblox.com/asset/?id="..v)
  142. end
  143. local i = 0
  144. coroutine.resume(coroutine.create(function()while wait(2) do
  145.     i = i + 1
  146.     if i > #decals then
  147.         i = 1
  148.     end
  149.     tvdecal.Texture = "rbxassetid://"..decals[i]
  150. end
  151. end))
  152. end
  153. workspace.ChildRemoved:connect(function(p)
  154.     if p.Name == namer then
  155.         warn("This window was deleted from workspace, respawning.")
  156.         tvmodel()
  157.     end
  158. end)
  159. tvmodel()
  160. print("This picture window has successfully loaded.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement