Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I change the body parts of a player using a local script?

The script works, but the other players cant see the body colors

local player = game:GetService("Players").LocalPlayer
local character = player.Character
local gui = script.Parent

gui.MouseButton1Click:connect(function()
   character.Torso.BrickColor = BrickColor.new("ReallyRed")
end)

1 answer

✓ Accepted answer

Well other player can't see you changing body colors because your game has FE enabled.

That means that changes on the client do not replicate to server, which means that you have to change body colors from the server side.

For that you should look up remote events on roblox wiki here

Basically you would just pass the color from client to server and than change the body colors in a server script using OnServerEvent event of Remote Events.

2 comments

0

thx

0

np

This discussion is preserved as it was. New answers, comments, and votes are closed.