


Remote.OnServerEvent:Connect(function(player,colorname) - player is always the first parameter passed through the remote onserver, colorname is any variable following that came through Script: local remote = script.Parent:WaitForChild("RemoteEvent") LocalScript: local remote = script.Parent:WaitForChild("RemoteEvent") Then use a RemoteEvent to send to a server script to change the color and change the value of the color in playerstats. I don’t know what kind of button you use and what script, but this is working for me by doing this:Ī LocalScript inside the textbutton on the screen to press to change color. Local color = player:WaitForChild("playerstats"):WaitForChild("Color")Ĭharacter:WaitForChild("Body Colors").TorsoColor = BrickColor.new(color.Value) Player.CharacterAdded:Connect(function(character) Local color = Instance.new("StringValue") Local playerstats = Instance.new("Folder")
