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

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

Asked by 5 years ago

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

Log in to vote
0
Answered by 5 years ago

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.

0
thx 0_Halloween 166 — 5y
0
np g1o2r3d4a5n6 350 — 5y
Ad

Answer this question