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

how can I change this NPC head colour?

Asked by 5 years ago

So basically I'm trying to change the npc's head color. Though for some reason the game isn't recognizing the properties in the players Body Color. Could I get a better understand of how to get that. And btw I'm using Remote events in this so the act like the variables are in the actual server script but in the local.

Scirpt

local guy = game.Workspace.NameHere
local Black = script.Parent.Parent["Skin Colour"].Black
local BlackC = Vector3.new(90,45,0)

game.ReplicatedStorage.Black.OnServerEvent:Connect(function(Player,Black,guy,BlackC)
    print(BlackC.Value)
    guy["Body Colors"].HeadColor3 = Color3.new(BlackC)
end)

Thanks.

1
so BlackC is a vector3 variable and you are tring to set a Color3 to A vector3... Very nice lol Igoralexeymarengobr 365 — 5y
0
xd noammao 294 — 5y
0
Vector3 represents a 3D position in space. It has no relation to color properties. T0XN 276 — 5y

Answer this question