Advertisement
KodingKid

1-7 Random Number Generator in Lua

Apr 6th, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. while true do
  2. local number = math.random(1,7) --this means there are 7 objects (1-7) and 1 of them will be randomly picked
  3.     game.ReplicatedStorage:FindFirstChild("Example"..number).Parent = workspace
  4.     workspace:FindFirstChild("Example"..number).Parent = game.ReplicatedStorage
  5. --randomly picks out of the 7 objects
  6. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement