Hello all, I have a script that simply checks and changes a value that is located inside of the LocalPlayer’s character model. During this process I have encountered an issue where my script is incapable to index the value properly.
local headCount = character.headCount
if mapsVal.Value == 3 and flashlightVal.Value == false and headCount == 1 then
db = true
hrp.CFrame = tpPart3.CFrame
mapsVal.Value = 4
wait(3)
db = false
end
I have two other functions that operate with two different IntValues so I know that my script is not faulty. I have tried printing the value and it returns nil. I made sure that there were no spelling errors and I have gone as far as loading into the game and checking if the value actually resided within the character model and it does. Below are the images that depict the value inside of the character and the output error. Any response would help and would be very much appreciated!