Hello community, I have a problem with a JumPower Save script, but these come out in the OutPut, I have tried several ways to solve it, but it does not work.
LocalScript:
local DataStores = game:GetService("DataStoreService")
local FirstDataStore = DataStores:GetDataStore("WalkSpeedStorage")
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(Character)
Character.Humanoid.JumpPower = FirstDataStore:GetAsync(player.UserId) or 16
FirstDataStore:SetAsync(player.UserId, Character.Humanoid.JumpPower)
Character.Humanoid.Changed:connect(function()
FirstDataStore:SetAsync(player.UserId, Character.Humanoid.JumpPower)
end)
wait(0.1)
end)
end)
game.Players.PlayerRemoving:connect(function(player)
FirstDataStore:SetAsync(player.UserId, player.Character.Humanoid.JumpPower)
end)
Error in the OutPut: