I want to make a gui that when they click a button, a car spans next to them Idk how to teleport models but I tried in the script below and of course is isn't working.

function OnClicked() 
for i, v in pairs(game.Workspace) do v.Car.CFrame = CFrame.new(Vector3.new(50, 50, 50)) -- Change numbers to whatever end
	
end
script.Parent.MouseButton1Down:connect(OnClicked)

2 comments

0

When you tested it are there any outputs?

0

it says car get child is not a vaild member of workspace.