I'm making a domino game where if you knock them all over, you can press a gui button to stand all of them back up. The only thing is, I don't know where to start if I were to script this. Can I just move the group through a script? Would this stand them all back up?
Put a localscript in the button. Put a duplicate of the dominos in ServerStorage. Put this in the script:
(Change the variables to the actual dominos, these are just directories I made up)
local DominosToReset = workspace.Dominos local DominosInStorage = game.ServerStorage.Dominos function leftClick() print("Button Clickâ) DominosToReset:Destroy() DominoReplacers = DominosInStorage:Clone() DominoReplacers.Parent = workspace DominosToReset = DominoReplacers end script.Parent.MouseButton1Click:Connect(leftClick)
The idea is that the dominos in ServerStorage are cloned to replace the old ones as they are deleted.
This was coded from my head, there may be errors.
Hope this helps you. Merry Christmas! :)