Need help making a part clone another object?
I am trying to make a simple ball dispenser. I put the sphere in server storage to keep it out of the playing area. I want to set a part in my model to dispense a sphere every 3 seconds. I put print scripts to check if it works. The console does print the messages, but there are no sphere's spawning in the dispenser.
Here is my script, nothing happens. I wonder if my logic is wrong and the computer simply doesn't understand my order, or if my ball is in the wrong location.
03 | Dispenser = script.Parent |
05 | DispenserPosition = Dispenser.Position |
07 | Ball = game.ServerStorage.Ball |
09 | BallClone = Ball:Clone() |
11 | MyWorkspace = game.Workspace |
19 | Dispenser.CanCollide = false |
21 | print ( 'You can walk through me' ) |
23 | print (Dispenser.Position) |
28 | BallClone = DispenserPosition |