Roblox Studio 脚本教程 如何在Roblox上使用自动保存创建排行榜?

2352
0
2020-04-10 15:29:40
25
5
35
6
youtube原地址:https://www.youtube.com/watch?v=erwx5FxsDTE --Script local DataStoreService = game:GetService("DataStoreService") local DataStore = DataStoreService:GetDataStore("MoneyStats") -- Change this with a random name. game.Players.PlayerAdded:Connect(function(Player) local Leaderstats = Instance.new("Folder") Leaderstats.Name = "leaderstats" Leaderstats.Parent = Player local Currency = Instance.new("StringValue") Currency.Name = "Money" -- Change this with your currency name. Currency.Value = DataStore:GetAsync(Player.UserId) or "0" Currency.Parent = Leaderstats end) game.Players.PlayerRemoving:Connect(function(Player) DataStore:SetAsync(Player.UserId, Player.leaderstats.Money.Value) end)
Roblox游戏背景音乐搬运工(past),偶尔玩玩其他游戏.
客服
顶部
赛事库 课堂 2021拜年纪