0 views0 copies0 likes
Character Color Picker with World Swatches
Universal script
Copy it, then test it in your own Studio place.
Script code
12 lines · 0.5 KBfor _, swatch in workspace:WaitForChild("ColorSwatches"):GetChildren() do if not swatch:IsA("BasePart") then continue end local prompt = Instance.new("ProximityPrompt", swatch) prompt.ActionText = "Choose color" prompt.Triggered:Connect(function(player) local character = player.Character if not character then return end local colors = character:FindFirstChildOfClass("BodyColors") if not colors then return end colors.TorsoColor3 = swatch.Color end)endAbout this script
Set three anchored swatch parts under Workspace.ColorSwatches to your chosen colors. Approaching a swatch lets a player apply its color to the torso of their current avatar. The server reads the chosen color from the part itself. This is a simple dressing-room interaction for your own game. Test both R6 and R15 avatars and adjust clothing if it obscures the color change.
Log in to leave a comment.
No comments yet
Be the first to share your thoughts!
Comments
Share what works, ask questions, or report an issue.