difficulty = game.Players.LocalPlayer:findFirstChild("leaderstats").Difficulty
script.Parent.MouseButton1Click:connect(function()
player = game.Players.LocalPlayer
player:WaitForDataReady()
if player.DataReady then
plyr:SaveNumber("Difficulty", difficulty.Value)
end
end)
difficulty = game.Players.LocalPlayer:findFirstChild("leaderstats").Difficulty
script.Parent.MouseButton1Click:connect(function()
player = game.Players.LocalPlayer
player:WaitForDataReady()
if player.DataReady then
plyr:LoadNumber("Difficulty", difficulty.Value)
end
end)
Yes, I know there's DataStore. No, I won't use it. |