memberhero

TV Script

Mar 3rd, 2021 (edited)
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. --Converted by basstracker1970
  2. --Orignal TV by SunRaysEffect
  3. function part(parent,size,form,material,transparency,reflectance,cf,anchored,collide,name,color)
  4. local p = Instance.new('Part',parent)
  5. p.Size = size
  6. p.FormFactor = form or Enum.FormFactor.Custom
  7. p.Material = material
  8. p.Transparency = transparency
  9. p.Reflectance = reflectance
  10. p.CFrame = cf
  11. p.BrickColor = color
  12. p.Name = name or "Part"
  13. p.Anchored = anchored
  14. p.CanCollide = collide
  15. return p
  16. end
  17. function weld(parent,part0,part1,c0,c1,name)
  18. local w = Instance.new('Weld',parent)
  19. w.Part0 = part0
  20. w.Part1 = part1
  21. w.C0 = c0
  22. w.C1 = c1
  23. w.Name = name or ""
  24. end
  25. function wedgepart(parent,size,form,material,transparency,reflectance,cf,anchored,collide,name,color)
  26. local p = Instance.new('WedgePart',parent)
  27. p.Size = size
  28. p.FormFactor = form or Enum.FormFactor.Custom
  29. p.Material = material
  30. p.Transparency = transparency
  31. p.Reflectance = reflectance
  32. p.CFrame = cf
  33. p.BrickColor = color
  34. p.Name = name or "Part"
  35. p.Anchored = anchored
  36. p.CanCollide = collide
  37. return p
  38. end
  39. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  40. local mesh=Instance.new(Mesh)
  41. mesh.Parent=part
  42. if Mesh=="SpecialMesh" then
  43. mesh.MeshType=meshtype
  44. mesh.MeshId=meshid
  45. end
  46. mesh.Offset=offset
  47. mesh.Scale=scale
  48. return mesh
  49. end
  50. local m=Instance.new("Model")
  51. m.Parent = workspace
  52. m.Name = "TV"
  53. Head=part(m,Vector3.new(13.7600079, 9.75000095, 0.0500000007),nil,Enum.Material.Neon,0,0,CFrame.new(-54.25, 6.98176861, -8.16000366, 1.00000763, 7.44498418e-09, 9.53678182e-07, 7.44498374e-09, 1.00000381, 9.53150447e-10, 9.53678182e-07, 9.53150447e-10, 1.00000024),false,true,"Head",BrickColor.new("Steel blue"))
  54. HumanoidRootPart=part(m,Vector3.new(8.66000462, 0.579999983, 1.81999946),nil,Enum.Material.Metal,0,0,CFrame.new(-54.0103989, 0.297982514, -7.48110771, 1.00001049, -1.1384591e-09, 0.00135615468, -1.18063763e-05, 0.999980628, 0.00872192346, -0.00135347247, -0.00872187875, 0.999974787),false,true,"HumanoidRootPart",BrickColor.new("Smoky grey"))
  55. Torso=part(m,Vector3.new(14.4399967, 10.5999994, 1.55000019),nil,Enum.Material.Metal,0,0,CFrame.new(-54.2201538, 6.97657204, -7.35995483, 1.00000381, 3.72530007e-09, 4.76838181e-07, 3.72257158e-09, 1.00000191, -6.10155985e-06, 4.76838238e-07, 6.10250208e-06, 1.00000012),false,true,"Torso",BrickColor.new("Smoky grey"))
  56. Rod=part(m,Vector3.new(0.940000236, 1.29999995, 0.859999955),nil,Enum.Material.Metal,0,0,CFrame.new(-53.9555664, 1.23930025, -7.33740664, 0.61014998, -8.45952419e-10, 0.792295575, -0.00691022631, 0.999972284, 0.00532161118, -0.792263806, -0.00872182194, 0.610127687),false,true,"Rod",BrickColor.new("Smoky grey"))
  57. m:MakeJoints()
  58. for i,v in next,m:GetChildren() do
  59. v.Anchored = true
  60. end
  61. m.PrimaryPart = HumanoidRootPart
  62. local Sound = Instance.new("Sound",Head)
  63. Sound.SoundId = "rbxassetid://1463560946"
  64. local ClickDetector = Instance.new("ClickDetector",Head)
  65. local ids = {
  66. 5670802294,
  67. 5608304953,
  68. 5608297917,
  69. 5608410985,
  70. 5608327482,
  71. 5608369138,
  72. 5608368298,
  73. 5608403837,
  74. 5608359401,
  75. 5608321996,
  76. 5608292559, -- skidded
  77. 5608281849,
  78. 5670794788,
  79. 5608360493,
  80. 5608398904,
  81. 5670824523,
  82. 5608402438,
  83. 5608290551,
  84. 5608410019,
  85. 5608268502,
  86. 5670869502,
  87. 5608333583,
  88. 5608384572,
  89. 5608310319,
  90. 5608370112,
  91. 5670799859,
  92. 5670809466,
  93. 5608309393,
  94. 5608392925,
  95. 5608411652,
  96. 5608339667,
  97. 5608250999,
  98. 5608390467,
  99. 5608412605,
  100. 5608349310,
  101. 5670826209,
  102. 5608389672,
  103. 5608330602,
  104. 5608400507,
  105. 5608285055,
  106. 5670806798,
  107. 5608337069,
  108. 5670822962,
  109. 5608386285,
  110. 5608342423,
  111. 5608381934,
  112. 5608303923,
  113. 5608413286,
  114. 5670785995,
  115. 5608422571,
  116. 5670804538
  117. }
  118. ClickDetector.MouseClick:Connect(function()
  119. Head.Sound.Volume = 1
  120. Head.SurfaceGui.VideoFrame.Video = 'rbxassetid://'..ids[math.random(#ids)]
  121. Head.SurfaceGui.VideoFrame.TimePosition = 0
  122. Head.SurfaceGui.VideoFrame.Loaded:Wait()
  123. Head.SurfaceGui.VideoFrame.Looped = true
  124. Head.SurfaceGui.VideoFrame.Playing = true
  125. Head.SurfaceGui.VideoFrame.Volume = 5
  126. Head.Sound.Volume = 0
  127. end)
  128.  
  129. local SurfaceGui = Instance.new("SurfaceGui",Head)
  130. local VideoFrame = Instance.new("VideoFrame",SurfaceGui)
  131. VideoFrame.Size = UDim2.new(0, 800,0, 600)
  132.  
  133. local plr = owner
  134. local root = plr.Character.HumanoidRootPart
  135. local tv = m
  136. local pos = root.CFrame*CFrame.new(Vector3.new(0,0,-5))
  137. tv:SetPrimaryPartCFrame(CFrame.lookAt(pos.Position,root.Position));
  138. tv.Parent = workspace
Add Comment
Please, Sign In to add comment