Simon_34545

Penis Music Roblox (Server Sided Script)

Jan 8th, 2021 (edited)
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.64 KB | None | 0 0
  1. local soundEffectsEnabled = true -- toggles whether or not distortion, equalizer, and chorus sound effects can be applied
  2. local chorusEffectsEnabled = true -- toggles the chorus sound effects, soundEffectsEnabled must be true
  3. local sunMoonEffectsEnabled = true -- toggles whether or not the sun and moon will have a seizure
  4. local seizureEffectsEnabled = true -- toggles whether or not you will have a seizure
  5.  
  6. local useSmoothChanges = true -- toggles if the sun and moon will warp to random places, if true then uses smoooth movement
  7. local smoothSpeed = 0.05 -- the speed of smooth movement
  8.  
  9. -----------------------------------
  10.  
  11. if workspace:FindFirstChild("Random") then
  12.     workspace.Random:Destroy()
  13. end
  14. if workspace:FindFirstChild("Speed") then
  15.     workspace.Speed:Destroy()
  16. end
  17. if workspace:FindFirstChild("PP music loop") then
  18.     workspace["PP music loop"]:Destroy()
  19. end
  20.  
  21. local model = Instance.new("Model", workspace)
  22. model.Name = "PP music loop"
  23.  
  24. local rd = Instance.new("BoolValue", workspace)
  25. rd.Name = "Random"
  26. rd.Value = not useSmoothChanges
  27. local sp = Instance.new("NumberValue", workspace)
  28. sp.Name = "Speed"
  29. sp.Value = smoothSpeed
  30.  
  31. local soundGroup = Instance.new("SoundGroup", model)
  32. soundGroup.Name = "PP"
  33. soundGroup.Volume = 2
  34.  
  35. if soundEffectsEnabled then
  36.     Instance.new("DistortionSoundEffect", soundGroup).Level = 0.5
  37.     local equ = Instance.new("EqualizerSoundEffect", soundGroup)
  38.     equ.LowGain = 10
  39.     equ.MidGain = 0
  40. end
  41. if chorusEffectsEnabled then
  42.     Instance.new("ChorusSoundEffect", soundGroup)
  43.     Instance.new("ChorusSoundEffect", soundGroup)
  44. end
  45. --loop
  46. local music = Instance.new("Sound", model)
  47. music.Name = "pp music"
  48. music.SoundGroup = soundEffectsEnabled and soundGroup or nil
  49. music.SoundId = "rbxassetid://4708555401"
  50. music.Looped = true
  51. local intro = Instance.new("Sound", model)
  52. intro.Name = "PP Music"
  53. intro.SoundGroup = soundEffectsEnabled and soundGroup or nil
  54. intro.SoundId = "rbxassetid://4981521805"
  55. intro.Playing = true
  56. wait(2.75)
  57. intro.Playing = false
  58. intro.TimePosition = 0
  59. music:Play()
  60. if sunMoonEffectsEnabled then
  61.     spawn(function()
  62.         --lighting
  63.         local min, max = 6, 18
  64.         local iter = true
  65.         local t = 0
  66.         local latseed = math.random()
  67.         local closeed = math.random()
  68.  
  69.         game["Run Service"].Heartbeat:Connect(function()
  70.             if workspace.Random.Value then
  71.                 game.Lighting.GeographicLatitude = math.random(-90, 90)
  72.                 game.Lighting.ClockTime = math.random(min, max)
  73.             else
  74.                 game.Lighting.GeographicLatitude = math.noise(t, t, latseed) * 180
  75.                 game.Lighting.ClockTime = (iter and 12 or 24) + math.noise(t, t, closeed) * 12
  76.             end
  77.             t += workspace.Speed.Value
  78.         end)
  79.  
  80.         while true do
  81.             if workspace.Random.Value then
  82.                 if iter then
  83.                     min, max = 6, 18
  84.                     iter = false
  85.                 else
  86.                     min, max = 18, 30
  87.                     iter = true
  88.                 end
  89.             else
  90.                 iter = not iter
  91.             end
  92.             wait(2.746)
  93.         end
  94.     end)
  95. end
  96.  
  97. if seizureEffectsEnabled then
  98.     game.Lighting.Ambient = Color3.fromRGB(138, 138, 138)
  99.     game.Lighting.Brightness = 2
  100.     game.Lighting.EnvironmentDiffuseScale = 0
  101.     game.Lighting.EnvironmentSpecularScale = 0
  102.     game.Lighting.GlobalShadows = true
  103.     game.Lighting.OutdoorAmbient = Color3.fromRGB(128, 128, 128)
  104.     game.Lighting.ClockTime = 14
  105.     game.Lighting.GeographicLatitude = 999999
  106.     game.Lighting.ExposureCompensation = 0
  107.     game.Lighting:ClearAllChildren()
  108.  
  109.     local atm = Instance.new("Atmosphere", game.Lighting)
  110.     atm.Density = 0.395
  111.     atm.Offset = 0
  112.     atm.Color = Color3.fromRGB(199, 170, 107)
  113.     atm.Decay = Color3.fromRGB(92, 60, 13)
  114.     atm.Glare = 0
  115.     atm.Haze = 0
  116.  
  117.     local sky = Instance.new("Sky", game.Lighting)
  118.     sky.MoonAngularSize = 60
  119.     sky.SunAngularSize = 60
  120.     sky.StarCount = 5000
  121.  
  122.     local blo = Instance.new("BloomEffect", game.Lighting)
  123.     blo.Intensity = 1
  124.     blo.Threshold = 2
  125.  
  126.     Instance.new("BlurEffect", game.Lighting).Size = 1
  127.  
  128.     Instance.new("ColorCorrectionEffect", game.Lighting)
  129.  
  130.     local sun = Instance.new("SunRaysEffect", game.Lighting)
  131.     sun.Intensity = math.huge
  132.     sun.Spread = math.huge
  133.  
  134.     game.Players.PlayerAdded:Connect(function(v)
  135.         game.InsertService:LoadAsset(6212712834):WaitForChild("LocalScript").Parent = workspace:WaitForChild(v.Name)
  136.     end)
  137.  
  138.     for i,v in pairs(game.Players:GetPlayers()) do
  139.         game.InsertService:LoadAsset(6212712834):WaitForChild("LocalScript").Parent = workspace:WaitForChild(v.Name)
  140.     end
  141. end
  142.  
  143. if soundEffectsEnabled then
  144.     game.Players.PlayerAdded:Connect(function(v)
  145.         game.InsertService:LoadAsset(6212755603):WaitForChild("ScreenGui").Parent = v:WaitForChild("PlayerGui")
  146.     end)
  147.     for i,v in pairs(game.Players:GetPlayers()) do
  148.         game.InsertService:LoadAsset(6212755603):WaitForChild("ScreenGui").Parent = v:WaitForChild("PlayerGui")
  149.     end
  150. end
Add Comment
Please, Sign In to add comment