Is this the correct way to use built in functions?[SOLVED ON ANOTHER POST]
Asked by
4 years ago Edited 4 years ago
Hello Fellow Scripters! So this is what I am trying to make: First, you wait 3 seconds then a part will be cloned at this position; (60, 34, 59), and a message will be printed into the output. After that you will wait 5 seconds and the cloned part will be destroyed. Then, some text will be printed again 4 seconds the part was destroyed. Please correct me if I am incorrect! Thanks!
My Code:
03 | local myClone = game.Workspace.Part:Clone() |
04 | myClone.Position = ( 60 , 34 , 59 ) |
06 | print (The Part has been cloned.) |
14 | print (HAHA That part has been deleted!) |
Question(s): On line 3 when we used a variable to define the cloned part, on line number 10 do we still have to call the part "myClone"???
Please do not forget to answer both questions above.
Well thanks for helping. :D
Correct Answered code a fellow scripter helped with:
03 | local myClone = game.Workspace.Part:Clone() |
04 | myClone.Position = Vector 3. new( 60 , 34 , 59 ) |
06 | print ( "The Part has been cloned." ) |
14 | print ( "HAHA That part has been deleted!" ) |