COMMUNITY QUESTION
intvalue cant be detected with a script?
2 answers
try:
script.Parent.Changed:Connect(function()
end)
or
script.Parent:GetPropertyChangedSignal("Value"):Connect(function()
end)
Value is a property of the IntValue object, rather than the object itself
4 comments
0
the script is a child of an intvalue, how would i try to get the value of the intvalue if the intvalue changes?
0
I think both would work but I'm on a phone right now so I can't test it
0
should i use a local script? i tried printing something in the function but nothing worked
0
If you're modifying the value in a local script, then yes, because things done in a localscript do not replicate from the client to the server
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
script : script.Parent.Value.Changed:Connect(function() if script.Parent.Value == 4 then print("lall") end end)