Dest.touching.Changed:Connect(function(newValue)
print(newValue)
if newValue then
--code
end
end)
It’s not printing print(newValue) I also tried printing other stuff but it’s not printing anything.
I am not getting any errors.
BoolValue changing code:
function npc(NpcTouched)
if NpcTouched.Parent:FindFirstChild("NPC") then
script.Parent.touching.Value = true
end
end
script.Parent.Touched:Connect(npc)
The BoolValue changes.
This is where the BoolValue is in the Explorer:
The DestTwo is in Workspace.
Where are you changing the value of the BoolValue, in a Script or a LocalScript?
I’m fairly sure a ValueObject’s value doesn’t replicate, so if you change the value on the client, it won’t appear changed on the server.