I have tried everything that have came to my mind. Im a new dev and not experianced
local player = game.Players.LocalPlayer
local PStats = player.Stats
local PlayerGui = player.PlayerGui
local BaseMoreTimeUpgradeCost = PStats.BaseMoreTimeUpgradeCost
script.Parent.Text = BaseMoreTimeUpgradeCost.Value
BaseMoreTimeUpgradeCost:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.Text = BaseMoreTimeUpgradeCost.Value
end)
Is this a local script or a server script? If it is a server script then change it to local because it can’t access LocalPlayer
Where is the script located? Have you made sure script.Parent is a TextLabel and not SurfaceGui?
Finally, does it print any errors in the output?
The script works fine if there is nothing wrong though