Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Party Script
- --By chexyalani
- disco=function(boolean)
- local bool=boolean
- if bool== true then
- spawn(function()
- while wait(.2) do
- spawn(function()
- for i=1,10 do
- game.Lighting.Ambient=game.Lighting.Ambient:lerp(Color3.new(math.random(255)/255, math.random(255)/255,math.random(255)/255), i/10)
- end
- end)
- if not bool then break end
- end
- end)
- end
- end
- local player,done=game.Players.LocalPlayer,false
- game:FindService("StarterGui"):SetCore("ChatMakeSystemMessage",{
- Text="[Party] Now using 'Party Script' created by chexyalani";
- Color=Color3.new(255/255, 255/255, 0/255);
- })
- player.Chatted:Connect(function(msg)
- if msg==":disco" then
- if not done then
- done=true
- disco(true)
- elseif done then
- done=false
- disco(false)
- end
- elseif msg:sub(1,6)==":Play " then
- if game.ReplicatedStorage:FindFirstChildOfClass("Sound") then game.ReplicatedStorage:FindFirstChildOfClass("Sound"):Destroy() end
- local s=Instance.new("Sound",game.ReplicatedStorage)
- s.SoundId="rbxassetid://"..msg:sub(7)
- s.Volume=1
- s.Looped=true
- s:Play()
- game:FindService("StarterGui"):SetCore("ChatMakeSystemMessage",{
- Text="[Party] Now playing : '" .. game:GetService("MarketplaceService"):GetProductInfo(msg:sub(7)).Name.."'";
- Color=Color3.new(255/255,255/255,0/255);
- })
- elseif msg:sub(1,5)==":Vol " then
- local sound=game.ReplicatedStorage:FindFirstChildOfClass("Sound")
- if sound then sound.Volume=tonumber(msg:sub(6)) end
- end
- end)
Add Comment
Please, Sign In to add comment