I am trying to create a gui shop that changes the players body color, via BodyColors (A body colors part) in the person. When the shop button is pressed however nothing happens. Any ideas?
wait(0.5)
player = script.Parent.Parent.Parent.Parent.Parent
money = player.leaderstats.Wins
price = 0
function buy()
if money.Value >= price then
player.CharacterAdded:wait()
player.Character.BodyColors.TorsoColor = BrickColor.new(104)
end
end
script.Parent.MouseButton1Down:connect(buy)

1 comment
cheers