My Currency UI isn't working

You can write your topic however you want, but you need to answer these questions:
Trying to make a UI for my currency

The Value Stays at 0 for the Player, or so the UI

Scripts:

CurrencyHandler >>>

game.Players.PlayerAdded:Connect(function(player)
	local value = Instance.new("NumberValue", player)
	value.Name = "PixelsValue"
	
	
	while wait(1) do
		value.Value = value.Value + 20
	end
end)

CurrencyShower >>>

local player = game.Players.LocalPlayer

player:WaitForChild("Currency").Changed:Connect(function(val)
	script.Parent.Currency.Currency = "$"..val
end)

script.Parent.Currency.Currency = "$"..player:WaitForChild("Currency").Value
2 Likes

Hello! Are you using TextLabels to show up the currency?

1 Like

You name the NumberValue “PixelsValue”, so you should use .Changed on player.PixelsValue

local player = game.Players.LocalPlayer

player:WaitForChild("PixelsValue").Changed:Connect(function(val)
	script.Parent.Currency.Currency = "$"..val
end)

script.Parent.Currency.Currency = "$"..player:WaitForChild("PixelsValue").Value

yeeeeesssssssssssssssssssssssss I am!

  18:31:03.298  DyixelZone auto-recovery file was created  -  Studio - C:/Users/mrtix/OneDrive/Documents/ROBLOX/AutoSaves
  18:31:06.515  Workspace.Pistol.Server:258: Error: MAX_BULLET_SPREAD_ANGLE cannot be less than MIN_BULLET_SPREAD_ANGLE!  -  Server - Server:258
  18:31:06.516  Stack Begin  -  Studio
  18:31:06.517  Script 'Workspace.Pistol.Server', Line 258  -  Studio - Server:258
  18:31:06.517  Stack End  -  Studio
  18:31:26.857  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:7
  18:31:26.858  Stack Begin  -  Studio
  18:31:26.858  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 7  -  Studio - CurrencyShower:7
  18:31:26.859  Stack End  -  Studio
  18:31:26.901  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:26.902  Stack Begin  -  Studio
  18:31:26.902  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:26.902  Stack End  -  Studio
  18:31:27.630  ServerScriptService.FallDamageScript:16: attempt to perform arithmetic (sub) on nil and number  -  Server - FallDamageScript:16
  18:31:27.630  Stack Begin  -  Studio
  18:31:27.630  Script 'ServerScriptService.FallDamageScript', Line 16  -  Studio - FallDamageScript:16
  18:31:27.630  Stack End  -  Studio
  18:31:27.654  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:27.654  Stack Begin  -  Studio
  18:31:27.654  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:27.655  Stack End  -  Studio
  18:31:28.594  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:28.594  Stack Begin  -  Studio
  18:31:28.594  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:28.594  Stack End  -  Studio
  18:31:29.612  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:29.612  Stack Begin  -  Studio
  18:31:29.612  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:29.613  Stack End  -  Studio
  18:31:30.620  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:30.621  Stack Begin  -  Studio
  18:31:30.621  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:30.621  Stack End  -  Studio
  18:31:31.637  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:31.637  Stack Begin  -  Studio
  18:31:31.637  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:31.637  Stack End  -  Studio
  18:31:32.638  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:32.638  Stack Begin  -  Studio
  18:31:32.639  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:32.639  Stack End  -  Studio
  18:31:33.639  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:33.639  Stack Begin  -  Studio
  18:31:33.639  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:33.640  Stack End  -  Studio
  18:31:34.669  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:34.670  Stack Begin  -  Studio
  18:31:34.670  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:34.671  Stack End  -  Studio
  18:31:35.670  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:35.670  Stack Begin  -  Studio
  18:31:35.671  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:35.671  Stack End  -  Studio
  18:31:36.670  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:36.670  Stack Begin  -  Studio
  18:31:36.671  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:36.671  Stack End  -  Studio
  18:31:37.687  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:37.688  Stack Begin  -  Studio
  18:31:37.689  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:37.689  Stack End  -  Studio
  18:31:38.704  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:38.704  Stack Begin  -  Studio
  18:31:38.705  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:38.705  Stack End  -  Studio
  18:31:39.687  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:39.687  Stack Begin  -  Studio
  18:31:39.687  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:39.688  Stack End  -  Studio
  18:31:40.719  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:40.719  Stack Begin  -  Studio
  18:31:40.721  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:40.722  Stack End  -  Studio
  18:31:41.721  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:41.721  Stack Begin  -  Studio
  18:31:41.721  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:41.722  Stack End  -  Studio
  18:31:42.753  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:42.753  Stack Begin  -  Studio
  18:31:42.754  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:42.754  Stack End  -  Studio
  18:31:43.769  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:43.770  Stack Begin  -  Studio
  18:31:43.770  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:43.770  Stack End  -  Studio
  18:31:44.786  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:44.786  Stack Begin  -  Studio
  18:31:44.787  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:44.787  Stack End  -  Studio
  18:31:45.789  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:45.789  Stack Begin  -  Studio
  18:31:45.789  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:45.790  Stack End  -  Studio
  18:31:46.802  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:46.802  Stack Begin  -  Studio
  18:31:46.803  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:46.803  Stack End  -  Studio
  18:31:47.820  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:47.821  Stack Begin  -  Studio
  18:31:47.821  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:47.821  Stack End  -  Studio
  18:31:48.801  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:48.802  Stack Begin  -  Studio
  18:31:48.802  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:48.802  Stack End  -  Studio
  18:31:49.835  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:49.835  Stack Begin  -  Studio
  18:31:49.836  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:49.836  Stack End  -  Studio
  18:31:50.838  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:50.839  Stack Begin  -  Studio
  18:31:50.839  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:50.839  Stack End  -  Studio
  18:31:51.852  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:51.852  Stack Begin  -  Studio
  18:31:51.853  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:51.853  Stack End  -  Studio
  18:31:52.853  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:52.854  Stack Begin  -  Studio
  18:31:52.854  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:52.854  Stack End  -  Studio
  18:31:53.869  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:53.870  Stack Begin  -  Studio
  18:31:53.870  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:53.870  Stack End  -  Studio
  18:31:54.869  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:54.869  Stack Begin  -  Studio
  18:31:54.869  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:54.870  Stack End  -  Studio
  18:31:55.853  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:55.853  Stack Begin  -  Studio
  18:31:55.853  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:55.854  Stack End  -  Studio
  18:31:56.868  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:56.868  Stack Begin  -  Studio
  18:31:56.869  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:56.869  Stack End  -  Studio
  18:31:57.885  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:57.885  Stack Begin  -  Studio
  18:31:57.885  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:57.886  Stack End  -  Studio
  18:31:58.902  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:58.902  Stack Begin  -  Studio
  18:31:58.902  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:58.902  Stack End  -  Studio
  18:31:59.917  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:31:59.918  Stack Begin  -  Studio
  18:31:59.918  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:31:59.918  Stack End  -  Studio
  18:32:00.919  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:00.920  Stack Begin  -  Studio
  18:32:00.920  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:00.920  Stack End  -  Studio
  18:32:01.903  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:01.904  Stack Begin  -  Studio
  18:32:01.904  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:01.904  Stack End  -  Studio
  18:32:02.935  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:02.935  Stack Begin  -  Studio
  18:32:02.935  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:02.936  Stack End  -  Studio
  18:32:03.917  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:03.918  Stack Begin  -  Studio
  18:32:03.918  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:03.918  Stack End  -  Studio
  18:32:04.919  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:04.920  Stack Begin  -  Studio
  18:32:04.920  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:04.920  Stack End  -  Studio
  18:32:05.969  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:05.970  Stack Begin  -  Studio
  18:32:05.970  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:05.970  Stack End  -  Studio
  18:32:06.985  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:06.985  Stack Begin  -  Studio
  18:32:06.985  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:06.985  Stack End  -  Studio
  18:32:07.984  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:07.985  Stack Begin  -  Studio
  18:32:07.985  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:07.985  Stack End  -  Studio
  18:32:09.003  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:09.003  Stack Begin  -  Studio
  18:32:09.003  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:09.003  Stack End  -  Studio
  18:32:10.002  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:10.003  Stack Begin  -  Studio
  18:32:10.003  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:10.003  Stack End  -  Studio
  18:32:11.019  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:11.020  Stack Begin  -  Studio
  18:32:11.020  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:11.020  Stack End  -  Studio
  18:32:12.018  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:12.018  Stack Begin  -  Studio
  18:32:12.019  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:12.019  Stack End  -  Studio
  18:32:13.019  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:13.020  Stack Begin  -  Studio
  18:32:13.020  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:13.020  Stack End  -  Studio
  18:32:14.036  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:14.036  Stack Begin  -  Studio
  18:32:14.036  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:14.037  Stack End  -  Studio
  18:32:15.051  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:15.052  Stack Begin  -  Studio
  18:32:15.052  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:15.052  Stack End  -  Studio
  18:32:16.068  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:16.068  Stack Begin  -  Studio
  18:32:16.069  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:16.069  Stack End  -  Studio
  18:32:17.067  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:17.067  Stack Begin  -  Studio
  18:32:17.067  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:17.067  Stack End  -  Studio
  18:32:18.102  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:18.102  Stack Begin  -  Studio
  18:32:18.102  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:18.103  Stack End  -  Studio
  18:32:19.118  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:19.118  Stack Begin  -  Studio
  18:32:19.118  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:19.118  Stack End  -  Studio
  18:32:20.134  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:20.134  Stack Begin  -  Studio
  18:32:20.134  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:20.134  Stack End  -  Studio
  18:32:21.151  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:21.151  Stack Begin  -  Studio
  18:32:21.152  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:21.152  Stack End  -  Studio
  18:32:22.166  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:22.166  Stack Begin  -  Studio
  18:32:22.167  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:22.167  Stack End  -  Studio
  18:32:23.168  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:23.168  Stack Begin  -  Studio
  18:32:23.168  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:23.169  Stack End  -  Studio
  18:32:24.167  Currency is not a valid member of TextLabel "Players.NubblyFry.PlayerGui.PixelsDisplay.Currency"  -  Client - CurrencyShower:4
  18:32:24.168  Stack Begin  -  Studio
  18:32:24.168  Script 'Players.NubblyFry.PlayerGui.PixelsDisplay.CurrencyShower', Line 4  -  Studio - CurrencyShower:4
  18:32:24.168  Stack End  -  Studio
  18:32:25.310  Disconnect from ::ffff:127.0.0.1|51865  -  Studio

Alright, the problem I see is that you are not telling what will the TextLabel display.

If the text label is on script.Parent then you should add this:

local Currency = player.PixelsValue
local TextLabel = script.Parent

Currency.Changed:Connect(function(val)
script.Parent.Currency.Currency = "$"..val -- Also maybe Currency.Currency is wrong, I think it should be Currency.Value
TextLabel.Text = Currency.Value
end)

Check your hierarchy of your gui. Make sure you reference everything correctly.

And as @revolucionario2000 said use the .Text property of the textlabel to change the text of the textlabel.

Didnt work this time


Can you show us your explorer (Just the UI and it’s stuff) and see what’s wrong in the scripts, and try to fix it

local Currency = player.PixelsValue
local TextLabel = script.Parent

Currency.Changed:Connect(function(val)
script.Parent.Currency.Value = val -- if it doesnt work try changing  = val to = Currency
TextLabel.Text = Currency.Value
end)

Annotation 2021-05-19 183813

local player = game.Players.LocalPlayer
local Currency = player.PixelsValue
local TextLabel = script.Parent.Currency

Currency.Changed:Connect(function(val)
TextLabel.Text = "$"..val -- if it doesnt work try changing  ..val to ..Currency
end)

Edit: Forgot to add local Player

1 Like

It worked, thanks!

Annotation 2021-05-19 184148

1 Like

No problem! Glad I could help you :slight_smile: !

2 Likes