RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Can you write code that turns all players green on execute and is visible to all players?"
-- server script local Players = game:GetService("Players") for _, player in ipairs(Players:GetPlayers()) do local character = player.Character if character then for _, part in ipairs(character:GetChildren()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then part.BrickColor = BrickColor.new("Bright green") end end end end Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) for _, part in ipairs(character:GetChildren()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then part.BrickColor = BrickColor.new("Bright green") end end end) end)