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

Custom rig's skin tone script not working?

Asked by 3 years ago

Local script in gui:

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Folder = ReplicatedStorage.Events
local Event = Folder.ColorEvent1

script.Parent.MouseButton1Click:Connect(function()
    ReplicatedStorage.Events.ColorEvent1:FireServer()
end)

ServerScriptService:

game.ReplicatedStorage.Events.ColorEvent1.OnServerEvent:Connect(function(plr)
    local Button = game.StarterGui.Menu.Frame1.SkinColor1
    local q = BrickColor.new("Nougat")

    local char = plr.Character
    char.Head.BrickColor = q
    char.UpperTorso.BrickColor = q
    char["RightLowerArm"].BrickColor = q
    char["LeftLowerArm"].BrickColor = q
    char["RightUpperArm"].BrickColor = q
    char["LeftUpperArm"].BrickColor = q
    char["LeftLowerLeg"].BrickColor = q
    char["RightUpperLeg"].BrickColor = q
    char["LeftUpperLeg"].BrickColor = q
    char["LeftFoot"].BrickColor = q
    char["RightFoot"].BrickColor = q
    char["RightHand"].BrickColor = q
    char["LeftHand"].BrickColor = q
end)

Their is also a folder in replicated storage for the remote event. Please help!!

Answer this question