Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

IntValue.Changed isn't working ?

Asked by 5 years ago
Edited 5 years ago

FULL CODE:

script.Slash0.OnServerEvent:Connect(function(p,slashnum)
    slashnum = 0
    print('SlashNum Changed to '..script.Parent.Parent.SlashNum.Value..' (0)') 
    -- this print works
end)

script.Parent.Parent.SlashNum.Changed:Connect(function(NewValue)
    print(NewValue)
    --this print doesn't work
end)

Output:

SlashNum Changed to 0 (0)

Hello I need this (int)value to change in a localscript but i know you can't change values in localscripts so I got a remote event and did it that way but when I do it this way it only knows that the value changed in that event (in other scripts or functions the value isn't detected when it is changed)

I don't know why its not detecting that the value is changing.

Any help is appreciated.

If anything is missing just comment

0
If you just print a message, does it print the message or is it not getting called at all (remove the NewValue parameter from the function as well) Nowaha 459 — 5y
0
message's also don't print TigerClaws454 48 — 5y
0
@Nowaha no DeceptiveCaster 3761 — 5y

Answer this question