My PlayerGui script is not working for some reason. It’s not updating the text.
Script:
--local script
local player = game.Players.LocalPlayer
local speed = player:WaitForChild("leaderstats"):FindFirstChild("Speed")
local playerGui = player:WaitForChild("PlayerGui")
local SpeedText = playerGui:WaitForChild("MainFrame"):FindFirstChild("SpeedText")
speed.Changed:Connect(function()
SpeedText.Text = "Speed: "..speed.Value
end)
There are no errors.