The LocaleId Player property shows the locale id that the local player has set for their Roblox account. It holds a string with the two letter code (for example, "en-us") for the locale. This can be used to determine the geographic demographic of your game's player base, and is also...
I’m not sure I understand what the rest of your code is supposed to do, but here’s a script to put in the ServerScriptService that will go through all the IDs in the whitelist and if it’s not one of them kick the player Script in ServerScriptService --Service local ReplicatedStorag...
for _, player in pairs(Players:GetPlayers()) do onPlayerAdded(player) end Players.PlayerAdded:Connect(onPlayerAdded) UserId number 平行讀取 UserId 是 Roblox 上每個使用者帳號的 Class.Player 屬性,其包含一個只讀的整數,其 Instance.Name 地識別每個使用者帳號。與玩家的 1> Class.Instance.Name1...
for _, player in pairs(Players:GetPlayers()) do onPlayerAdded(player) end Players.PlayerAdded:Connect(onPlayerAdded) UserId number 读取并联 UserId 是一个 Player 属性,其中包含一个只读的整数,它 独一无二 地识别每个用户帐户在 Roblox 上。与玩家的 Instance.Name 不同,这值永远不会改变到同一...