I’ve looked in countless places but can’t seem to find it. How would I go about changing a Table Value allowing it to save the next time I run the function?
Example:
This code below only prints False when the function has been fired.
local function testFunc()
local testTable = {
boolValue = true
}
if testTable.boolValue == true then
testTable.boolValue = false
print(testTable.boolValue)
else
testTable.boolValue = true
print(testTable.boolValue)
end
end
part.ClickDetector.MouseClick:Connect(function()
testFunc()
end)
Thanks in advance!