-- Coloque este script em ServerScriptService local Players = game:GetService("Players") local Lighting = game:GetService("Lighting") -- Lista de IDs de jogadores permitidos a usar os comandos (Substitua pelos IDs desejados) local ADMINS = {12345678, 87654321} local function isAdmin(player) return table.find(ADMINS, player.UserId) ~= nil end -- Função auxiliar para encontrar um jogador pelo nome parcial local function findTarget(name) for _, p in ipairs(Players:GetPlayers()) do if string.sub(string.lower(p.Name), 1, string.len(name)) == string.lower(name) then return p end end return nil end Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) if not isAdmin(player) then return end -- Divide a mensagem em argumentos (ex: ";skybox 12345") local args = string.split(message, " ") local command = args[1] ------------------------------------------ -- COMANDO: MUDAR COR DO CÉU (Ambient) ------------------------------------------ if command == ";skycolor" and args[2] then -- Exemplo de uso: ;skycolor 255 0 0 (RGB) ou usando cores predefinidas via BrickColor local success, color = pcall(function() return BrickColor.new(args[2]).Color end) if success then Lighting.Ambient = color Lighting.OutdoorAmbient = color end ------------------------------------------ -- COMANDO: MUDAR SKYBOX POR ID ------------------------------------------ elseif command == ";skybox" and args[2] then local assetId = "rbxassetid://" .. args[2] -- Remove a skybox antiga se existir local oldSky = Lighting:FindFirstChildOfClass("Sky") if oldSky then oldSky:Destroy() end -- Cria uma nova Skybox local newSky = Instance.new("Sky") newSky.SkyboxBk = assetId newSky.SkyboxDn = assetId newSky.SkyboxFt = assetId newSky.SkyboxLf = assetId newSky.SkyboxRt = assetId newSky.SkyboxUp = assetId newSky.Parent = Lighting end end) end)