Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local toadasset1 = "rbxassetid://7234998844"
- local toadasset2 = "rbxassetid://1009824086"
- local ToadMesh = {toadasset1,toadasset2}
- local ToadSound = {"rbxassetid://858267961"}
- local randomnums = {0.5,1,1.5}
- local skyasset = {"rbxassetid://16939083393"}
- local song = {"rbxassetid://1847661783"}
- function sky()
- local sky = Instance.new("Sky",game.Lighting)
- sky.SkyboxUp = skyasset[1]
- sky.SkyboxDn = skyasset[1]
- sky.SkyboxLf = skyasset[1]
- sky.SkyboxFt = skyasset[1]
- sky.SkyboxRt = skyasset[1]
- sky.SkyboxBk = skyasset[1]
- end
- function clear()
- for _,e in pairs(game.Workspace:GetChildren())
- do if e:IsA("Part") or e:IsA("MeshPart") or e:IsA("Model") or e:IsA("Folder") then e:Destroy() end end for _,plr in pairs(game.Players:GetPlayers()) do plr:LoadCharacter() end game.Workspace.Terrain:Clear() local atmo = game.Lighting:FindFirstChild("Atmosphere") if atmo ~= nil then atmo:Destroy() end local corr = game.Lighting:FindFirstChildOfClass("ColorCorrectionEffect") if corr ~= nil then corr:Destroy() end end
- function rain()
- local toad = Instance.new("Part",game.Workspace)
- toad.CanCollide = false toad.Size = Vector3.new(250,550,250)
- toad.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000))
- local mesh = Instance.new("SpecialMesh",toad)
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.MeshId = ToadMesh[1]
- mesh.TextureId = ToadMesh[2]
- local sound = Instance.new("Sound",toad)
- sound.Volume = 10
- sound.Pitch = randomnums[math.random(1,#randomnums)]
- sound.SoundId = ToadSound[1]
- sound.Looped = true
- sound:Play()
- local sound2 = Instance.new("Sound",toad)
- sound2.Volume = 10
- sound2.Pitch = sound.Pitch
- sound2.SoundId = ToadSound[1]
- sound2.Looped = true
- sound2:Play()
- local sound3 = Instance.new("Sound",toad)
- sound3.Volume = 10
- sound3.Pitch = sound2.Pitch
- sound3.SoundId = ToadSound[1]
- sound3.Looped = true
- sound3:Play()
- end
- function playsong()
- local audio = Instance.new("Sound",game.Workspace)
- audio.Volume = 2
- audio.Pitch = 1
- audio.SoundId = song[1]
- audio.Looped = true
- audio:Play()
- end
- local calls = {sky,clear,playsong,rain}
- calls[1](skyasset)
- calls[2]()
- calls[3](song)
- while wait(0.05) do
- calls[4](ToadMesh,randomnums,ToadSound) end
Advertisement
Add Comment
Please, Sign In to add comment