Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How Do i make a buy/spawn/customize car gui?

I wanted to know the scripts needed for a buy/spawn/car gui i already have a GUI

1 answer

✓ Accepted answer

Well, I can't post the entire script but I'll tell you the theory to it.

All you need is to code the GUI so that when a button is clicked you can buy a car. This works by taking currency away from whatever currency you've set in leaderstats and then you can set a bool value called the cars name to true Then you can code another button (spawn car) which when clicked if the car name is equal to true then it can get a clone of the car from ServerStorage and place it in front of the player, so if you could set a primary part of the cars CFrame to the players position CFrame + Vector3.new(10,5,0) so that it spawns slightly in front of them and above the ground so that it can fall to the ground safely.

If you don't know how GUIs work, learn about the MouseButton1Down function so that you can make all what I've said happen once the GUI is clicked.

1 comment

0

i have a youtube video i can send you but it only to buy car here is the video https://www.youtube.com/watch?v=I5-xg4tYLAk he will show u how to sell you car

This discussion is preserved as it was. New answers, comments, and votes are closed.