Answered by
6 years ago Edited 6 years ago
You simply are forgetting that models don't have Position
. Position is capitalized. Either put a block inside of the model and move that, or put a block inside the model and make it the primary part and move that. You should also not that :connect()
is deprecated. Use :Connect()
instead. To post code, all you need to do is place the code inside of the two lines that are provided. Example (imagine the ' are the lines provided when you click the code block button):
'''''''''''''''''
-- code
'''''''''''''''''
Here we use the real method with your fixed script:
1 | local part = game.Workspace.Tracks |
2 | local cloned = part:Clone() |
3 | cloned.Parent = game.Workspace |
5 | cloned.position = Vector 3. new( 0 , 0 , 0 ) |
7 | script.Parent.Touched:Connect(hit) |
Info on localizing your functions here. If you have any additional questions feel free to post them in the comments below. I hope I helped and have a great day scripting!