Hello, the error i am getting is in the title
ItemNumber is a value i created in the localscript by doing:
1 | local ItemNumber = 1 |
where the error occurs:
1 | ItemNumber.Changed:connect( function (NewValue) |
2 |
3 | end ) |
i don't know why this is happening it works fine with another value in another script can it be because it is a value created in the localscript ?
Thanks for any help
You need an int value then if you want rename it and reference it to your script. Here
1 | local ItemNumber = game.Workspace.IntValue.Value |
2 |
3 | ItemNumber.Changed:connect( function (NewValue) |
4 |
5 | end ) |
But if that didn’t work try this one
1 | local ItemNumber = game.Workspace.IntValue |
2 |
3 | ItemNumber.Changed:connect( function (NewValue) |
4 | If ItemNumber.Value = = (What Ever Number You Want Here) then |
5 |
6 | end |
7 | end ) |
Please don’t forget to make this the answer if it was correct!
Thanks -GizmoProductions