Basically, this is my first time creating a custom character creator. I've been trying for a while to try and figure out why this error keeps coming up
Players.Player1.PlayerGui.CharacterCreatorFigure:27: attempt to index field 'Value' (a nil value)
the script this is coming from is as follows:
repeat wait() until game.Workspace.CurrentCamera
local Camera = game.Workspace.CurrentCamera
local Character = game:GetService("ReplicatedStorage"):WaitForChild("CreatorChar"):Clone()
local Base = game:GetService("ReplicatedStorage"):WaitForChild("CharBase"):Clone()
local player = game.Players.LocalPlayer
local Hat = player:WaitForChild("Hat")
local Shirt = player:WaitForChild("Shirt")
local Pants = player:WaitForChild("Pants")
Base.Parent = Camera
Character.Parent = Camera
------------Functions--------------
function Update()
for i,v in pairs(Character:GetChildren()) do
if v:IsA("Hat") or v:IsA("Shirt") or v:IsA("Pants") then
v:Destroy()
end
end
Hat.Value:Clone().Parent = Character --.Value
wait()
Shirt.Value:Clone().Parent = Character
wait()
Pants.Value:Clone().Parent = Character
end
Hat.Changed:connect(function()
Update()
end)
Shirt.Changed:connect(function()
Update()
end)
Pants.Changed:connect(function()
Update()
end)
The actual creator spans over multiple scripts, I need some help desperetely or an alternative
