This script makes the player change the body color of the player, when I tried on ServerClient, other players are not able to see the other player changing the body color, how do I fix this problem?
Here is the script:
local tool = script.Parent
local handle = tool.Handle
local eatSFX = handle.Eat
enabled = true
tool.Equipped:Connect(function()
handle.BrickColor = BrickColor.Random()
end)
tool.Activated:Connect(function()
if not enabled then return end
enabled = false
eatSFX:Play()
tool.GripPos = Vector3.new(1.35, -1, -1)
wait(2)
tool.GripPos = Vector3.new(0, 0, 0)
local players = game.Players.LocalPlayer
local char = players.Character
char.Head.BrickColor = BrickColor.Random()
char.UpperTorso.BrickColor = BrickColor.Random()
char.LowerTorso.BrickColor = BrickColor.Random()
char["RightLowerArm"].BrickColor = BrickColor.Random()
char["LeftLowerArm"].BrickColor = BrickColor.Random()
char["RightUpperArm"].BrickColor = BrickColor.Random()
char["LeftUpperArm"].BrickColor = BrickColor.Random()
char["LeftLowerLeg"].BrickColor = BrickColor.Random()
char["RightLowerLeg"].BrickColor = BrickColor.Random()
char["RightUpperLeg"].BrickColor = BrickColor.Random()
char["LeftUpperLeg"].BrickColor = BrickColor.Random()
char["RightFoot"].BrickColor = BrickColor.Random()
char["LeftFoot"].BrickColor = BrickColor.Random()
char["RightHand"].BrickColor = BrickColor.Random()
char["LeftHand"].BrickColor = BrickColor.Random()
enabled = true
end)
