how do i link the speed value in the leaderstat to the local player walkspeed
local dataStores = game:GetService("DataStoreService"):GetDataStore("Speed")
local deafaultSpeed = 0
local playerLeft = 0
game.Players.PlayerAdded:Connect(function(player)
local PlayerGui = player:WaitForChild('PlayerGui')
playerLeft = playerLeft + 1
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
wait(1)
local speed = Instance.new("IntValue")
speed.Name = "Speed"
speed.Value = game.StarterGui.ScreenGui.speed.Text
speed.Parent = leaderstats

5 comments
onChanged is not defined and i dont know what to define it as
You have to make the function.. smh
Did you put in the function onChanged?
How did you manage to write this script but not understand my answer? No offense.
Incorrect code mate.