📜  math.random 和 clone - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:56.588000             🧑  作者: Mango

代码示例1
local Children = game.ReplicatedStorage:GetChildren()
local AmountOfChildren = #Children  
local RandomPositionInArray = math.random(1, AmountOfChildren)
local RandomChild = Children[RandomPositionInArray]