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

How come the text in the textlabel does not change if the IntValue in the local player does?

Asked by
iiSL_K 5
4 years ago

I have double checked everything was done right but it doesn't seem to be working!

I put this script in the Workspace: game.Players.PlayerAdded:connect(function(plr) local played = Instance.new("Folder",plr) played.Name = "GamesPlayed" local Games = Instance.new("IntValue",played) Games.Name = "PlayedGames" Games.Value = 0 end)

And I put this script in a textlabel that is located in the StarterGui: local Games = script.Parent.Parent.Parent.Parent.Parent.GamesPlayed.PlayedGames Games.Changed:connect(function() script.Parent.Text = ""..Games.Value end)

Can someone please explain to me why the text in the textlabel does not change if the IntValue changes?

0
For your script that's inside the TextLabel, is it a LocalScript? warfighter10000 4 — 4y
0
wrap your code! DanzLua 2879 — 4y
0
Edit the post and fix ur code mkay Cjjdawg -9 — 4y

Answer this question