✓ Accepted answer
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:
local part = game.Workspace.Tracks
local cloned = part:Clone()
cloned.Parent = game.Workspace
local function hit()
cloned.position = Vector3.new(0,0,0)
end
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!
4 comments
how do i post this in lua text?
Wrap the code in a code block
https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site
You need to set the model's PrimaryPart and set the CFrame using SetPrimaryPartCFrame https://www.robloxdev.com/api-reference/function/Model/SetPrimaryPartCFrame