Hello I'm trying to make detection with npcs and they both use server scripts and the npc detecting the other npc is not working because IntValue.Changed is not firing. I am trying to change the value.
local IntValue = OtherNpc.IntValue -- renamed Value to "IntValue"
IntValue.Changed:Connect(function(p) -- Trying to connect to .Changed event
print("Changed") -- This is NOT firing
end)
There are no errors in the output
THIS IS DONE IN SERVER SCRIPTS!!!!!!

5 comments
You're changing the value locally but you're listening for the event on the server therefore the server doesn't recognise the change
Have you looked at the intvalue when it's supposed to change, to make sure it actually changes?
@incapaxx how to change value through server?
You press play, and then at the top of Roblox Studio it will say “Client”. Click that and it will switch to the server view. Then you can change the value
@ScrubSadmir THANK YOU