Hello,
I have this script that is supposed to multiply the value of "SpeedLevel" (an int value) by 3 and add that to the player's WalkSpeed as soon as the player joins the game. The problem is that the datastore with the "SpeedLevel" is never done loading...
Here is my script, located in StarterScriptService.
game.Players.PlayerAdded:Connect(function(player)
local Character = player.Character or player.CharacterAdded:Wait()
local SpeedLevel = player.InfoFolder.SpeedLevel
local WalkSpeed = Character.Humanoid.WalkSpeed
print(SpeedLevel.Value) -- Prints 0, but if the datastore was fully loaded it would print 5
WalkSpeed = WalkSpeed + (SpeedLevel.Value*3)
end)
Thank you!
