Why is my NumberValue not showing on text?
script1 path: game.StarterGui.AgilityValue.AgilityValueChange
01 | local agility = script.Parent.Value |
02 | local function onRunning(speed) |
03 | game.Players.LocalPlayer.Character:WaitForChild( "Humanoid" ).Running:Connect(onRunning) |
07 | local agilitygain = (time()-timeStarted) |
08 | agility = (agility+agilitygain) |
09 | agility = math.floor(agility) |
10 | script.Parent.Value = (agility) |
ok, so this script successfully changes the value of AgilityValue. But, in the other script i have,i am facing an issue.
script2 path: game.StarterGui.ScreenGui.Menu.MenuGUI.StatFrame.Agility.AgilityValueScript
1 | local agility = game:GetService( "StarterGui" ).AgilityValue.Value |
2 | local agilityText = script.Parent.Text |
3 | game.StarterGui.AgilityValue.Changed:Connect( function () |
4 | agilityText = ( "Agility:" )..agility |
Even though I am using the right path of agility, the agilityText remains as "Agility:" without showing the agility value next to it.
I would really appreciate it if someone helped me out, thanks :D