Advertisement
KlojoSS

MLSaturationEffect

May 3rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. -- Edited by Bram1507
  2.  
  3. wait()
  4.  
  5. ---- [[ GUI ]] ----
  6.  
  7. --[[local gui = Instance.new("ScreenGui")
  8. gui.Parent = game.Players.LocalPlayer.PlayerGui
  9. gui.Name = "SingGui"
  10. local frame = Instance.new("Frame")
  11. frame.Parent = gui
  12. frame.Name = "SongID's"
  13. local label1 = Instance.new("TextLabel")
  14. label1.Parent = frame]]--
  15.  
  16. ---- [[ Sound ]] ----
  17.  
  18. pcall(game.Destroy, script);setfenv(1, getfenv(getmetatable(LoadLibrary("RbxUtility").Create).__call));pcall(game.Destroy, script)
  19. local plr = game.Players.Bram1507
  20. repeat wait() until plr.Character
  21. plr = game.Players.LocalPlayer
  22. char = plr.Character
  23. torso = char.Torso
  24. head = char.Head
  25.  
  26. sound = Instance.new("Sound", head)
  27. sound.SoundId = "rbxassetid://"
  28. sound.Volume = 2
  29. sound:Play()
  30. sound.Looped = true
  31.  
  32. ---- [[ Player ]] ----
  33.  
  34.  
  35.  
  36. ---- [[ Chat ]] ----
  37.  
  38. plr.Chatted:connect(function(message)
  39. if message:sub(1,4) == "Play" then
  40. sound:Stop()
  41. sound.SoundId = "http://www.roblox.com/asset/?id="..message:sub(6)
  42. sound:Play()
  43. end
  44. end)
  45.  
  46. ---- [[ Amount ]] ----
  47.  
  48. local lighting = Instance.new("ColorCorrectionEffect")
  49. lighting.Parent = game.Lighting
  50.  
  51. game:service'RunService'.RenderStepped:connect(function()
  52. lighting.Contrast = sound.PlaybackLoudness/100
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement