I have a folder in replicatedstorage called "Faces" and each of the faces has a number as the name and i have a doubleconstrainedvalue to change and match that number and if it macthes the number it should be changing the face, but it'snot, and the left and right btton wont even work right either, can anyone help me, and there is absolutely no error so this is confusing as hell.
CODE:
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:wait()
local head = char:WaitForChild("Head")
local face = head:WaitForChild("face")
local left = script.Parent:WaitForChild("Left")
local right = script.Parent:WaitForChild("Right")
local nof = script.Parent:WaitForChild("NumberOfFaces")
local rs = game:GetService("ReplicatedStorage")
local faces = rs:WaitForChild("Faces")
left.MouseButton1Click:connect(function()
nof.Value = nof.Value +1
wait(0.2)
end)
right.MouseButton1Click:connect(function()
nof.Value = nof.Value -1
wait(0.2)
end)
while wait() do
script.Parent.Text = "FACE "..nof.Value
for i,v in pairs(faces:GetChildren()) do
if v.Name == nof.Value then
face.Texture = v.Texture
end
end
end

1 comment
Try print debugging, see which parts actually run. I suppose it's with your if statement on line 26 as you check if the face name is the same as the number of faces.