Gomlsauresrex

Party Script

May 9th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. --Party Script
  2. --By chexyalani
  3.  
  4. disco=function(boolean)
  5. local bool=boolean
  6. if bool== true then
  7. spawn(function()
  8. while wait(.2) do
  9. spawn(function()
  10. for i=1,10 do
  11. game.Lighting.Ambient=game.Lighting.Ambient:lerp(Color3.new(math.random(255)/255, math.random(255)/255,math.random(255)/255), i/10)
  12. end
  13. end)
  14. if not bool then break end
  15. end
  16. end)
  17. end
  18. end
  19.  
  20. local player,done=game.Players.LocalPlayer,false
  21.  
  22. game:FindService("StarterGui"):SetCore("ChatMakeSystemMessage",{
  23. Text="[Party] Now using 'Party Script' created by chexyalani";
  24. Color=Color3.new(255/255, 255/255, 0/255);
  25. })
  26.  
  27. player.Chatted:Connect(function(msg)
  28. if msg==":disco" then
  29. if not done then
  30. done=true
  31. disco(true)
  32. elseif done then
  33. done=false
  34. disco(false)
  35. end
  36. elseif msg:sub(1,6)==":Play " then
  37. if game.ReplicatedStorage:FindFirstChildOfClass("Sound") then game.ReplicatedStorage:FindFirstChildOfClass("Sound"):Destroy() end
  38. local s=Instance.new("Sound",game.ReplicatedStorage)
  39. s.SoundId="rbxassetid://"..msg:sub(7)
  40. s.Volume=1
  41. s.Looped=true
  42. s:Play()
  43. game:FindService("StarterGui"):SetCore("ChatMakeSystemMessage",{
  44. Text="[Party] Now playing : '" .. game:GetService("MarketplaceService"):GetProductInfo(msg:sub(7)).Name.."'";
  45. Color=Color3.new(255/255,255/255,0/255);
  46. })
  47. elseif msg:sub(1,5)==":Vol " then
  48. local sound=game.ReplicatedStorage:FindFirstChildOfClass("Sound")
  49. if sound then sound.Volume=tonumber(msg:sub(6)) end
  50. end
  51. end)
Add Comment
Please, Sign In to add comment