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

3 comments

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)

0

message's also don't print

0

@Nowaha no