I am working on a vehicle game and im making a car spawner. I have a gui and the cars spawn. Though they only spawn at the location they are in. How can I make it spawn next to the player? Here is my code.
function Click()
game.Lighting["F8"]:Clone().Parent = game.Workspace
end
script.Parent.MouseButton1Down:connect(Click)
The F8 is the car.

5 comments
Still spawns in the original place. https://gyazo.com/00fbf7654b1cec71ac38bdc5e5287c0c
You need to assign the local clone to a variable and then change the position of that clone. I've posted the script in this pastebin. https://pastebin.com/GFMtGCwc
Also this won't work in FE.
It works fine in studio but in the real game only 1/4 of the cars work, the other cars freeze in air and when I sit in it it shows a speed bar at the bottem and I cant move the car.
I figured it out.