Hey uh this aint first time im doing this post but I’m too mentally low-point that I cannot understand it properly.
How can I make it so the script ALWAYS checks for the value status??? Bool, Int, does not matter. Value.
Hey uh this aint first time im doing this post but I’m too mentally low-point that I cannot understand it properly.
How can I make it so the script ALWAYS checks for the value status??? Bool, Int, does not matter. Value.
Are you trying to check for value changes of a variable or for Property changes of an object.
local value = --value
value.Changed:Connect(function(newVal)
print('change: '..newVal)
end)
basic function from me :
local Bool = Instance.new("BoolValue")
Bool.Value = true
Bool.Parent = workspace
print("Stephen is true, change my mind")
Bool.Changed:Connect(function()
if Bool.Value == true then
print("Stephen is true, change my mind")
else
print("nvm, I prefer Ceausescu")
end
end)
Each time you changes the value. It will fires the code like what I write up here.