Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help! How to change Body Colors in R15 Version?

Asked by
Anubizx 76
6 years ago

Hi, i'm trying to create a Script that you can choose your Body Color but i don't have idea about how to do it in R15 Version! Help Please!

What can i use?

game.LocalPlayer.Character.BodyColors = BrickColor("White") is this correct?

1 answer

Log in to vote
0
Answered by
mattscy 3725 Moderation Voter Community Moderator
6 years ago

This should automatically change the colour of all parts in the character:

local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
for _,v in pairs(char:GetChildren()) do
   if v:IsA("BasePart") then
      v.BrickColor = BrickColor.new("White")
   end
end

However, if you are using FilteringEnabled and want the colours to change for every player, you will have to do this with a server script instead.

Ad

Answer this question