Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = Instance.new("Sound",Workspace.tyridge77);
- s.SoundId = "http://roblox.com/asset/?ID=277571097" s.Volume = .5; game.ContentProvider:preload(s.SoundId); wait(5); s:Play();
- function clamp(v,mi,ma)
- if v<mi then return mi elseif v>ma then return ma else return v end
- end
- local rs = game:GetService("RunService").RenderStepped;
- lastdark = 5;
- darkrandom = 5;
- while true do
- local time = Workspace.DistributedGameTime;
- rs:wait();
- if time-lastdark >= darkrandom then
- darkrandom = math.random(15,25);
- lastdark = time;
- local x = math.random(50,80);
- for i = 100,x,-1 do
- s.Pitch = i/100;
- wait();
- end
- wait(math.random(2,4))
- for i = x,100,1 do
- s.Pitch = i/100;
- wait();
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement