Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

intvalue cant be detected with a script?

This doesn't make sense, I've spend hours messing with the script and nothing seems to work.

1 comment

0

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

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.