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
5 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 — 5y
0
wrap your code! DanzLua 2879 — 5y
0
Edit the post and fix ur code mkay Cjjdawg -9 — 5y

Answer this question