I am trying to make a gui that shows how much speed you have:
game.Players.PlayerAdded:Connect(function(player)
local stats = Instance.new("Folder",player)
stats.Name = "leaderstats"
local speed = Instance.new("IntValue", stats)
speed.Name = "Speed"
speed.Value = 16
local Gui = game.StarterGui.ScreenGui.Frame.Frame.TextLabel
speed.Changed:Connect(function()
Gui.Text = "Speed: "..speed.Value
end)
end
This is my whole leaderstats script and down below is my script for the textlabel. But my gui does not even show the speed. I tried it without the function before, but then it doesnt update ther speed value.

2 comments
This is because you're getting the StarterGui not the PlayerGui, try local Gui = player.PlayerGui.ScreenGui.Frame.Frame.TextLabel
Do you want the value to change when the player's walkspeed changes?