Advertisement
BINO2002

Untitled

Apr 2nd, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. local S = Instance.new("Sound", script)
  2. S.SoundId = "http://www.roblox.com/asset/?ID=241755946"
  3. local M = Instance.new("SpecialMesh", script)
  4. M.MeshType = "FileMesh" -- 3D Meshes of Files in ROBLOX Service
  5. M.MeshId = "http://www.roblox.com/asset/?id=175477310"
  6. M.TextureId = "http://www.roblox.com/asset/?id=63540111"
  7.  
  8. script:WaitForChild("Sound"):Play()
  9.  
  10. c = workspace.CurrentCamera
  11. color = Color3.new(0,0,0)
  12. player = game.Players.LocalPlayer
  13. enabled = true
  14.  
  15. game.Lighting.FogEnd = "100"
  16. game.Lighting.FogStart = "0"
  17.  
  18. Spawn(function ()
  19. -- Sky Color Interpolation Stuff
  20. while true do
  21. local o = color
  22. local n = BrickColor.random().Color
  23. for i = 1,100 do
  24. local o,n = Vector3.new(o.r,o.g,o.b),Vector3.new(n.r,n.g,n.b)
  25. local e = o:lerp(n,i*.01)
  26. color = Color3.new(e.X,e.Y,e.Z)
  27. wait()
  28. end
  29. end
  30. end)
  31.  
  32. game.Lighting.FogColor = color
  33. game.Lighting.Changed:connect(function ()
  34. game.Lighting.FogColor = color
  35. end)
  36.  
  37. Spawn(function ()
  38. local update = workspace:WaitForChild("Update")
  39. update:WaitForChild("Mesh").Changed:connect(function ()
  40. script.Mesh.TextureId = "http://www.roblox.com/asset/?ID="..update.Mesh.Value
  41. end)
  42. update:WaitForChild("Sound").Changed:connect(function ()
  43. enabled = false
  44. script.Sound:Stop()
  45. local m = Instance.new("Message",player.PlayerGui)
  46. m.Text = "THE RULES HAVE CHANGED >:)"
  47. wait(3)
  48. script.Sound.SoundId = "http://www.roblox.com/asset/?ID="..update.Sound.Value
  49. script.Sound:Play()
  50. m:Destroy()
  51. enabled = true
  52. end)
  53. end)
  54.  
  55. while wait() do
  56. local char = player.Character
  57. if char and enabled then
  58. if char:findFirstChild("Humanoid") then
  59. char.Humanoid.Name = "humanoid" -- Prevent them from resetting their character.
  60. end
  61. local location = game.Players.LocalPlayer.Character:GetModelCFrame()
  62. local taco = Instance.new("Part")
  63. taco.CanCollide = false
  64. taco.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  65. local mesh = script:WaitForChild("Mesh"):clone()
  66. mesh.Parent = taco
  67. mesh.Scale = Vector3.new(math.random()*20,math.random()*20,math.random()*20)
  68. taco.CFrame = location * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
  69. taco.Parent = c
  70. game:GetService("Debris"):AddItem(taco,4)
  71. c.FieldOfView = 60+(math.cos(tick()/3))*10 -- http://www.roblox.com/Wave-Generator-item?id=146404985
  72. game.Lighting.FogColor = color
  73. end
  74. end
  75.  
  76. if game.Players.NumPlayers >= 1 then -- if player has 2 then copy script and paste into backpack!
  77. for i,v in pairs(game.Players:GetChildren()) do
  78. local SC = script:Clone()
  79. SC.Parent = v.Backpack
  80. end
  81. end
  82.  
  83. game.Players.PlayerAdded:connect(function(Plr)
  84. local SC = script:Clone()
  85. SC.Parent = Plr.Backpack
  86. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement