How do I change the player’s body color when a button is pressed
-- you'll have to make the Button and Player variables yourself, as I do not know the hierarchy.
Button.MouseButton1Click:Connect(function()
local bodyColors = Instance.new("BodyColor", Player)
-- assign Color3 properties to it here.
end)
Hope this works!
Button.MouseButton1Click:Connect(function()
local bodyColors = Instance.new("BodyColor", Player)
243, 207, 155
end)
Like that?
Nono, you would have to refer to the properties, and designate the colors with Color3.new().
Reference pic:
1 Like
You must use remote events if it is a textbutton since the colors in the player are not replicated to the others.
oh ok Im stupid can you show me
bodyColors.HeadColor3 = Color3.new(--[[your color combo here]])
Rinse and repeat for each part.
lmao thank you for everything
1 Like
Also: if you want the colors to replicate to other players in the server, you’ll have to do this.