Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local S = Instance.new("Sound", script)
- S.SoundId = "http://www.roblox.com/asset/?ID=241755946"
- local M = Instance.new("SpecialMesh", script)
- M.MeshType = "FileMesh" -- 3D Meshes of Files in ROBLOX Service
- M.MeshId = "http://www.roblox.com/asset/?id=175477310"
- M.TextureId = "http://www.roblox.com/asset/?id=63540111"
- script:WaitForChild("Sound"):Play()
- c = workspace.CurrentCamera
- color = Color3.new(0,0,0)
- player = game.Players.LocalPlayer
- enabled = true
- game.Lighting.FogEnd = "100"
- game.Lighting.FogStart = "0"
- Spawn(function ()
- -- Sky Color Interpolation Stuff
- while true do
- local o = color
- local n = BrickColor.random().Color
- for i = 1,100 do
- local o,n = Vector3.new(o.r,o.g,o.b),Vector3.new(n.r,n.g,n.b)
- local e = o:lerp(n,i*.01)
- color = Color3.new(e.X,e.Y,e.Z)
- wait()
- end
- end
- end)
- game.Lighting.FogColor = color
- game.Lighting.Changed:connect(function ()
- game.Lighting.FogColor = color
- end)
- Spawn(function ()
- local update = workspace:WaitForChild("Update")
- update:WaitForChild("Mesh").Changed:connect(function ()
- script.Mesh.TextureId = "http://www.roblox.com/asset/?ID="..update.Mesh.Value
- end)
- update:WaitForChild("Sound").Changed:connect(function ()
- enabled = false
- script.Sound:Stop()
- local m = Instance.new("Message",player.PlayerGui)
- m.Text = "THE RULES HAVE CHANGED >:)"
- wait(3)
- script.Sound.SoundId = "http://www.roblox.com/asset/?ID="..update.Sound.Value
- script.Sound:Play()
- m:Destroy()
- enabled = true
- end)
- end)
- while wait() do
- local char = player.Character
- if char and enabled then
- if char:findFirstChild("Humanoid") then
- char.Humanoid.Name = "humanoid" -- Prevent them from resetting their character.
- end
- local location = game.Players.LocalPlayer.Character:GetModelCFrame()
- local taco = Instance.new("Part")
- taco.CanCollide = false
- taco.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
- local mesh = script:WaitForChild("Mesh"):clone()
- mesh.Parent = taco
- mesh.Scale = Vector3.new(math.random()*20,math.random()*20,math.random()*20)
- taco.CFrame = location * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
- taco.Parent = c
- game:GetService("Debris"):AddItem(taco,4)
- c.FieldOfView = 60+(math.cos(tick()/3))*10 -- http://www.roblox.com/Wave-Generator-item?id=146404985
- game.Lighting.FogColor = color
- end
- end
- if game.Players.NumPlayers >= 1 then -- if player has 2 then copy script and paste into backpack!
- for i,v in pairs(game.Players:GetChildren()) do
- local SC = script:Clone()
- SC.Parent = v.Backpack
- end
- end
- game.Players.PlayerAdded:connect(function(Plr)
- local SC = script:Clone()
- SC.Parent = Plr.Backpack
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement