I am thinking of making a ScreenGui that people could click to purchase a car that would spawn infront of them.** My main questions:**
How would I spawn the cars? (From Replicated Storage) How do I make the car spawn in front of a player?
I also am thinking of making a license plate that randomly changes with each car. I am thinking of adding a billboard Gui to the plate and making it random. Do I use Randommath?
Please excuse all my questions as I am very novice to Lua but have large ambitions.
Okay I'm not very good either but since you don't have any answers yet, I'll try to answer your first question. No promises it will work as I haven't got to try it.
function clonecar() local regen = script.Parent --This is the is the regen button. This script should be in it. local new_item = game.Lighting.Car--Or whatever you want the name of it to be. It should be in the lighting. new_item:clone().Parent = game.Workspace--cloning the car into workspace new_item.Position = Vector3.new(x,y,z)--not posotive here as I'm not very good but you just need set the x, y, and z wait(10)--before used again end script.Parent.ClickDetector.Clicked:connect(clonecar)--you will need to insert a ClickDetector in the regen.
Hope this can help!
When you build you game and if you use free models you can go there and type in cars and then sometimes they come with the spawn.