game.Players.PlayerAdded:connect(function(player)

local stats = Instance.new("Folder", player)
stats.Name = "Stats"

local gemtag = Instance.new("IntValue", stats)
gemtag.Name = "Gems"
gemtag.Changed:connect(function()
	print "Hi"
end)

end)

when I change the gemtags value, the Changed function doesn't fire and it doesn't print Hi

8 comments

0

2nd arguement of Instance.new & connect are deprecated. Use Connect & .Parent = X instead

0

The event doesn't fire, not the function.

0

Okay thanks but that still didn't fix the problem

0

However you seem to be changing the value client sided. If the server listens for the event and the client changes the value; the server does not recognise the change.

0

Okay then the event doesn't fire, my problem still remains

1

incapaz thank you! You were right I messed up.

0

If your problem was solved, mind updating your question title to contain "[SOLVED]"? It marks the question as answered and will let people know you are no longer in need of assistance.

0

Yes