SCRIPTS: Link to the ColorScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/ColorScript.lua Link to the LocalScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua Link to the CarSpawner script: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua Link to the CallScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua Link to the DeleteScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/DeleteScript.lua On my other channel there is still such a video : additional to the video Car spawner: spawn Camaro and Jeep in Roblox Studio th-cam.com/video/aeEG3NPSStM/w-d-xo.html But there I add TextButton instead of ImageButton Decal www.roblox.com/library/4586090352/SpawnCar www.roblox.com/library/4586095893/DeleteCar www.roblox.com/library/4586441048/OrangeLexus www.roblox.com/library/4586612539/WhiteCar Music used in video from TH-cam Audio Library: 00:01 Break You In - Vibe Tracks 03:13 That Part - Diamond Ortiz 07:34 Detour - Gunnar Olsen 09:42 Metal - Mike Relm 12:49 Synergy - Geographer
*CHANGES IN SCRIPTS* Since the video was recorded, some changes have been made to the scripts. The newest scripts are on GitHub. Changes occurred in the following scripts: *Mar 27, 2020* --------------------- *CarSpawner* script github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua Added lines 33-47, removing cars after character reset or leaving the game *Oct 12, 2020* --------------------- *CarSpawner* script github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua Added lines 15-17 for protection to prevent cheaters and people with large lags to spawn multiple cars *March 6 2021* --------------------- *CarSpawner* script github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua Was added the line 27 to protect from hackers
*COMMON ISSUE* *SpawnCar button doesn't open the frame* You can check the following: 1. Make sure that the Frame is called Frame *If at least one letter or the case of any letter differs, or if there is an extra space, it will not work* 2. The SpawnCar button should be ImageButton (NOT ImageLabel) 3. Make sure that LocalScript is in the SpawnCar button, and its content is as here github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua
*COMMON ISSUE* *The car does not spawn* You can check the following: 1. Did you write the "Cars" folder correctly? The letter C should be written with a capital letter. 2. The name of ImageButton of a car must be exactly the same as the name of the car in the Cars folder. For example, if the car in the Cars folder is named LamborghiniAvendator, then the ImageButton of the car in Frame should be called LamborghiniAvendator. If at least one letter or the case of any letter differs, or if there is an extra space, the car will not be spawned. 3. Did you write the names of the events correctly in ReplicatedStorage: SpawnCar DeleteCar 4. Make sure that the button is ImageButton (not ImageLabel) 5. Make sure that the CallScript is put in the ImageButton of the car, and its content is as here github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua 6. Make sure that the CarSpawner script is put in ServerScriptService, and its content is as here github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
Timecodes: 00:16 As a platform for cars, let's take an example Racing from Roblox Studio 00:19 Then remove these jeeps, we don't need them 00:26 Let’s select the cars from Toolbox. These are free models. Links to them are in the description 00:48 Next, create the Cars folder in ServerStorage. Attention! The Cars folder must be written with a capital letter, because Lua case-sensitive. 00:52 Move these cars to the Cars folder 00:57 Rename the cars 01:05 Let’s add RemoteEvent to ReplicatedStorage and rename it to SpawnCar 01:11 Make a copy of SpawnCar and rename it to DeleteCar 01:18 Next, add ScreenGui to StarterGui, then add ImageButton to it 01:21 Set ImageButton Position to {0,0},{0,200} 01:32 Make a copy of ImageButton and set Position to {0,0},{0,350} 01:41 Let's place the pictures on the buttons, for this we need the id of the picture. To get the id we first put the desired picture on Part. (for these buttons I prepared pictures in Toolbox) 02:01 Copy id of DeleteCar image from the Texture property 02:09 and paste this id into the Image and HoverImage properties of the 2nd ImageButton 02:19 Set BackgroundTransparency to 1, if this property is set to 1, the background will not be displayed and the graphical interface will be completely transparent 02:26 Copy the id of the SpawnCar image from the Texture property 02:30 and paste this id into the Image and HoverImage properties of the 1st ImageButton 02:38 Set Background Transparency to 1 02:42 Next, we delete unnecessary Parts 02:49 Rename the 1st ImageButton to SpawnCar 02:55 Rename the 2nd ImageButton to DeleteCar 03:03 For the SpawnCar and DeleteCar buttons set ImageTransparency to 0.5 03:10 Add LocalScript to the SpawnCar button and rename it to ColorScript, this script changes the transparency and color of the button when you hover over it Link to the ColorScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/ColorScript.lua 04:09 Copy ColorScript to the DeleteCar button 04:28 Add Frame to ScreenGui 04:30 Set AnchorPoint to 0.5,0.5, the frame will expand in all directions, and the anchor point will be in the center of the Frame 04:34 Set Position to {0.5,0},{0.5, 0} 04:39 Set Size to {0, 600},{0, 400} 04:45 Copy the background border color (BorderColor3) to the background color (BackgroundColor3) 04:52 Set BackgroundTransparency to 0.4 04:54 Remove the background border by setting BorderSizePixel to 0 05:02 Add LocalScript to the SpawnCar button, which is responsible for opening and closing Frame when clicking the SpawnCar button Link to the LocalScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua 05:34 Add ImageButton to Frame and set its Size to {0,90},{0,90} 05:46 Move ImageButton from the edge of Frame, set the Position value to {0,5},{0,5} and rename the button to Lexus 05:57 Make a copy of the Lexus button and set the Position value to {0,105},{0,5} 06:03 and rename the button to Honda 06:08 Put the pictures on the buttons, for this we need the id of the picture. To get the id we first put the desired picture on Part (for these cars I prepared pictures in Toolbox) 06:24 Copy the id of the OrangeLexus image from the Texture property 06:31 and paste this id into the Image and HoverImage properties of the Lexus button 06:41 Let’s remove the button border by setting the value of BorderSizePixel to 0 06:47 Copy the id of the WhiteCar image from the Texture property 06:53 and paste this id into the Image and HoverImage properties of the Honda button 07:03 Let’s remove the button border by setting the value of BorderSizePixel to 0 07:08 Next, we delete unnecessary Parts 07:14 Disable the Frame's Visible property so that the frame opens only when clicking the SpawnCar button, otherwise it will be open as soon as you go to Play 07:29 In ServerScriptService add a server Script and rename it to CarSpawner, this script will spawn and delete the car Link to the CarSpawner script: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua 09:51 Add LocalScript to the Lexus button and rename it to CallScript, this script calls the CarSpawner server script when clicking the button with the desired car Link to the CallScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua 12:25 Copy CallScript to the Honda button 12:51 Add LocalScript to the DeleteCar button and rename it to DeleteScript, this script calls the CarSpawner server script when clicking the DeleteCar button Link to the DeleteScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/DeleteScript.lua 14:42 Disable the DeleteCar button's Visible property so that the button appears only after you spawn the car, otherwise it will appear as soon as you go to Play
Códigos de tiempo: 00:16 Como plataforma para coches, tomemos como ejemplo Racing de Roblox Studio 00:19 Luego elimina estos jeeps, no los necesitamos 00:26 Seleccionemos los coches desde Toolbox. Estos son modelos gratuitos. Los enlaces a ellos están en la descripción 00:48 A continuación, crea la carpeta Cars en ServerStorage. ¡Atención! La carpeta Cars debe escribirse con una letra mayúscula, porque Lua es sensible a mayúsculas y minúsculas. 00:52 Mueve estos coches a la carpeta Cars 00:57 Renombren los coches a los nombres Honda y Lexus 01:05 Añadamos RemoteEvent a ReplicatedStorage y renombrémoslo a SpawnCar 01:11 Haz una copia de SpawnCar y renómbralo a DeleteCar 01:18 A continuación, añade ScreenGui a StarterGui, luego añade ImageButton a ello 01:21 Establece la Position de ImageButton a {0,0},{0,200} 01:32 Haz una copia de ImageButton y establece la Position a {0,0},{0,350} 01:41 Coloquemos las imágenes en los botones, para esto necesitamos el id de la imagen. Para obtener el id primero ponemos la imagen deseada en Part. (para estos botones preparé imágenes en Toolbox) 02:01 Copia el id de la imagen de DeleteCar de la propiedad Texture 02:09 y pega este id en las propiedades Image y HoverImage del 2do ImageButton 02:19 Establece BackgroundTransparency a 1, si esta propiedad se establece a 1, el fondo no se mostrará y la interfaz gráfica será completamente transparente 02:26 Copia el id de la imagen de SpawnCar de la propiedad Texture 02:30 y pega este id en las propiedades Image y HoverImage del 1er ImageButton 02:38 Establece Background Transparency a 1 02:42 A continuación, eliminamos partes innecesarias 02:49 Renombra el 1er ImageButton a SpawnCar 02:55 Renombra el 2do ImageButton a DeleteCar 03:03 Para los botones SpawnCar y DeleteCar establece ImageTransparency a 0.5 03:10 Añade LocalScript al botón SpawnCar y renómbralo a ColorScript, este script cambia la transparencia y el color del botón cuando pasas el ratón por encima Enlace al ColorScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/ColorScript.lua 04:09 Copia ColorScript al botón DeleteCar 04:28 Añade Frame a ScreenGui 04:30 Establece AnchorPoint a 0.5,0.5, el marco se expandirá en todas direcciones y el punto de anclaje estará en el centro del Frame 04:34 Establece la Position a {0.5,0},{0.5, 0} 04:39 Establece el Size a {0, 600},{0, 400} 04:45 Copia el color del borde del fondo (BorderColor3) al color de fondo (BackgroundColor3) 04:52 Establece BackgroundTransparency a 0.4 04:54 Elimina el borde del fondo estableciendo BorderSizePixel a 0 05:02 Añade LocalScript al botón SpawnCar, que es responsable de abrir y cerrar Frame al hacer clic en el botón SpawnCar Enlace al LocalScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua 05:34 Añade ImageButton a Frame y establece su Size a {0,90},{0,90} 05:46 Mueve ImageButton desde el borde de Frame, establece el valor de Position a {0,5},{0,5} y renombra el botón a Lexus 05:57 Haz una copia del botón Lexus y establece el valor de Position a {0,105},{0,5} 06:03 y renombra el botón a Honda 06:08 Coloca las imágenes en los botones, para esto necesitamos el id de la imagen. Para obtener el id primero ponemos la imagen deseada en Part (para estos coches preparé imágenes en Toolbox) 06:24 Copia el id de la imagen de OrangeLexus de la propiedad Texture 06:31 y pega este id en las propiedades Image y HoverImage del botón Lexus 06:41 Eliminemos el borde del botón estableciendo el valor de BorderSizePixel a 0 06:47 Copia el id de la imagen de WhiteCar de la propiedad Texture 06:53 y pega este id en las propiedades Image y HoverImage del botón Honda 07:03 Eliminemos el borde del botón estableciendo el valor de BorderSizePixel a 0 07:08 A continuación, eliminamos partes innecesarias 07:14 Desactiva la propiedad Visible del Frame para que el marco solo se abra al hacer clic en el botón SpawnCar, de lo contrario estará abierto tan pronto como vayas a Play 07:29 En ServerScriptService añade un script de servidor y renómbralo a CarSpawner, este script generará y eliminará el coche Enlace al script CarSpawner: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua 09:51 Añade LocalScript al botón Lexus y renómbralo a CallScript, este script llama al script de servidor CarSpawner al hacer clic en el botón con el coche deseado Enlace al CallScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua 12:25 Copia CallScript al botón Honda 12:51 Añade LocalScript al botón DeleteCar y renómbralo a DeleteScript, este script llama al script de servidor CarSpawner al hacer clic en el botón DeleteCar Enlace al DeleteScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/DeleteScript.lua 14:42 Desactiva la propiedad Visible del botón DeleteCar para que el botón solo aparezca después de que generes el coche, de lo contrario aparecerá tan pronto como vayas a Play
4 years later and this still works, thank you so much bro Ur so underrated and I couldn't make my dream car game without you. I hope you reach 100k because you deserve it more than most of the other youtubers that reached 100k.
@@TheUnknownM3n3 Sorry I can't, but you can make it yourself by following the steps shown in the video and if you have any issues while making it, you can write in the video's comments and I'll try to help
Thank you so much! You are the type of person that can help people out. You should get a mic so you can explain even better. Anyways thank you so much! This helped me out alot
Yoo, thank you for this, but unfortuantly my game got banned for having a Trolling GUI in the game, so i lost the script, but i am remaking the game but it's called Brooklyn. Thanks for the script. This is a top tier one. 100/100. Edit: *Here's a sub for being awesome.*
thank u, this helped because now players can use gui instead of regen buttons but the only bad thing is that when u spawn something it doesnt check size so when i spawned my big bus i got stuck inside but i fixed it by changing the range of spawn but still a very nice tutorial
for this you can just delete this sentence : clonedCar:MoveTo(player.Character.HumanoidRootPart.Position + player.Character.HumanoidRootPart.CFrame.LookVector * 15) : from the car spawner script in server script service it should be in the second paragraph of the script. for me it works
Made the whole thing in about an hour, with about 10 cars, and after beautifying the menu (I also used TextButtons instead of ImageButtons to not have to screenshot and remove background all the cars). Solid tutorial!
It works but the car can't be driven when it is spawned Edit: never mind its because of the vehicle's chassis, but it still works thank u so much! got a sub my friend
Hello, thank you so much for everything. I have a question, how do I make them only team-using? I mean like I want the police car to be used only by the police team.
THANK YOU SOO MUCH! You saved me! Before I saw this video I was watching a 38 MIN VIDEO and I had to write out the script by myself. It was painful and it did not even work. Then you came saving the day! So I subed!!!!
Thanks. You have helped me obtain a lot of progress in my roleplaying game based on a neighborhood. I now will give you a subscription bro, you deserve that.
And now i'm back with my new car game and i don't know how to make the cars pictures You have made for the lexus and honda but i have other cars than that Pls reply
TYSM dude u helped me a lot I almost lost my mind as it wasn't working first to open the spawn menu but I just recopied the script from the desc then it worked thanks bro
Hey there! Amazing tutorial man!! 😎 I remember trying this a few years ago and then I gave up 😅 but this year I did it but I seemed to have some trouble with it. Do you have to change anything in the script if im not using the cars you are using?? Thanks! 😄
i love your videos, they're so helpful :D i am working on customization on a second place bc i can test only once on the dealership game (Crashes & errors) Now i need a spawner and this is very useful to only do a spawner with not any dealership (you know, the crashes) PS: i finished the dealership, That video taught me to script and work with guis Cheers
Thanks for making this video! Is very helpfull! Liked and subscribed! You need 1M subscribers and 56 thropies for that script and editing skills! A lot of thanks for making this videos! Proffesional scripet!
SCRIPTS:
Link to the ColorScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/ColorScript.lua
Link to the LocalScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua
Link to the CarSpawner script: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
Link to the CallScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua
Link to the DeleteScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/DeleteScript.lua
On my other channel there is still such a video
: additional to the video Car spawner: spawn Camaro and Jeep in Roblox Studio th-cam.com/video/aeEG3NPSStM/w-d-xo.html
But there I add TextButton instead of ImageButton
Decal
www.roblox.com/library/4586090352/SpawnCar
www.roblox.com/library/4586095893/DeleteCar
www.roblox.com/library/4586441048/OrangeLexus
www.roblox.com/library/4586612539/WhiteCar
Music used in video from TH-cam Audio Library:
00:01 Break You In - Vibe Tracks
03:13 That Part - Diamond Ortiz
07:34 Detour - Gunnar Olsen
09:42 Metal - Mike Relm
12:49 Synergy - Geographer
*CHANGES IN SCRIPTS*
Since the video was recorded, some changes have been made to the scripts. The newest scripts are on GitHub.
Changes occurred in the following scripts:
*Mar 27, 2020*
---------------------
*CarSpawner* script github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
Added lines 33-47, removing cars after character reset or leaving the game
*Oct 12, 2020*
---------------------
*CarSpawner* script github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
Added lines 15-17 for protection to prevent cheaters and people with large lags to spawn multiple cars
*March 6 2021*
---------------------
*CarSpawner* script github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
Was added the line 27 to protect from hackers
*COMMON ISSUE*
*SpawnCar button doesn't open the frame*
You can check the following:
1. Make sure that the Frame is called Frame
*If at least one letter or the case of any letter differs, or if there is an extra space, it will not work*
2. The SpawnCar button should be ImageButton (NOT ImageLabel)
3. Make sure that LocalScript is in the SpawnCar button, and its content is as here github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua
*COMMON ISSUE*
*The car does not spawn*
You can check the following:
1. Did you write the "Cars" folder correctly? The letter C should be written with a capital letter.
2. The name of ImageButton of a car must be exactly the same as the name of the car in the Cars folder. For example, if the car in the Cars folder is named LamborghiniAvendator, then the ImageButton of the car in Frame should be called LamborghiniAvendator. If at least one letter or the case of any letter differs, or if there is an extra space, the car will not be spawned.
3. Did you write the names of the events correctly in ReplicatedStorage:
SpawnCar
DeleteCar
4. Make sure that the button is ImageButton (not ImageLabel)
5. Make sure that the CallScript is put in the ImageButton of the car, and its content is as here github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua
6. Make sure that the CarSpawner script is put in ServerScriptService, and its content is as here github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
Timecodes:
00:16 As a platform for cars, let's take an example Racing from Roblox Studio
00:19 Then remove these jeeps, we don't need them
00:26 Let’s select the cars from Toolbox. These are free models. Links to them are in the description
00:48 Next, create the Cars folder in ServerStorage. Attention! The Cars folder must be written with a capital letter, because Lua case-sensitive.
00:52 Move these cars to the Cars folder
00:57 Rename the cars
01:05 Let’s add RemoteEvent to ReplicatedStorage and rename it to SpawnCar
01:11 Make a copy of SpawnCar and rename it to DeleteCar
01:18 Next, add ScreenGui to StarterGui, then add ImageButton to it
01:21 Set ImageButton Position to {0,0},{0,200}
01:32 Make a copy of ImageButton and set Position to {0,0},{0,350}
01:41 Let's place the pictures on the buttons, for this we need the id of the picture. To get the id we first put the desired picture on Part. (for these buttons I prepared pictures in Toolbox)
02:01 Copy id of DeleteCar image from the Texture property
02:09 and paste this id into the Image and HoverImage properties of the 2nd ImageButton
02:19 Set BackgroundTransparency to 1, if this property is set to 1, the background will not be displayed and the graphical interface will be completely transparent
02:26 Copy the id of the SpawnCar image from the Texture property
02:30 and paste this id into the Image and HoverImage properties of the 1st ImageButton
02:38 Set Background Transparency to 1
02:42 Next, we delete unnecessary Parts
02:49 Rename the 1st ImageButton to SpawnCar
02:55 Rename the 2nd ImageButton to DeleteCar
03:03 For the SpawnCar and DeleteCar buttons set ImageTransparency to 0.5
03:10 Add LocalScript to the SpawnCar button and rename it to ColorScript, this script changes the transparency and color of the button when you hover over it
Link to the ColorScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/ColorScript.lua
04:09 Copy ColorScript to the DeleteCar button
04:28 Add Frame to ScreenGui
04:30 Set AnchorPoint to 0.5,0.5, the frame will expand in all directions, and the anchor point will be in the center of the Frame
04:34 Set Position to {0.5,0},{0.5, 0}
04:39 Set Size to {0, 600},{0, 400}
04:45 Copy the background border color (BorderColor3) to the background color (BackgroundColor3)
04:52 Set BackgroundTransparency to 0.4
04:54 Remove the background border by setting BorderSizePixel to 0
05:02 Add LocalScript to the SpawnCar button, which is responsible for opening and closing Frame when clicking the SpawnCar button
Link to the LocalScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua
05:34 Add ImageButton to Frame and set its Size to {0,90},{0,90}
05:46 Move ImageButton from the edge of Frame, set the Position value to {0,5},{0,5} and rename the button to Lexus
05:57 Make a copy of the Lexus button and set the Position value to {0,105},{0,5}
06:03 and rename the button to Honda
06:08 Put the pictures on the buttons, for this we need the id of the picture. To get the id we first put the desired picture on Part (for these cars I prepared pictures in Toolbox)
06:24 Copy the id of the OrangeLexus image from the Texture property
06:31 and paste this id into the Image and HoverImage properties of the Lexus button
06:41 Let’s remove the button border by setting the value of BorderSizePixel to 0
06:47 Copy the id of the WhiteCar image from the Texture property
06:53 and paste this id into the Image and HoverImage properties of the Honda button
07:03 Let’s remove the button border by setting the value of BorderSizePixel to 0
07:08 Next, we delete unnecessary Parts
07:14 Disable the Frame's Visible property so that the frame opens only when clicking the SpawnCar button, otherwise it will be open as soon as you go to Play
07:29 In ServerScriptService add a server Script and rename it to CarSpawner, this script will spawn and delete the car
Link to the CarSpawner script: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
09:51 Add LocalScript to the Lexus button and rename it to CallScript, this script calls the CarSpawner server script when clicking the button with the desired car
Link to the CallScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua
12:25 Copy CallScript to the Honda button
12:51 Add LocalScript to the DeleteCar button and rename it to DeleteScript, this script calls the CarSpawner server script when clicking the DeleteCar button
Link to the DeleteScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/DeleteScript.lua
14:42 Disable the DeleteCar button's Visible property so that the button appears only after you spawn the car, otherwise it will appear as soon as you go to Play
Códigos de tiempo:
00:16 Como plataforma para coches, tomemos como ejemplo Racing de Roblox Studio
00:19 Luego elimina estos jeeps, no los necesitamos
00:26 Seleccionemos los coches desde Toolbox. Estos son modelos gratuitos. Los enlaces a ellos están en la descripción
00:48 A continuación, crea la carpeta Cars en ServerStorage. ¡Atención! La carpeta Cars debe escribirse con una letra mayúscula, porque Lua es sensible a mayúsculas y minúsculas.
00:52 Mueve estos coches a la carpeta Cars
00:57 Renombren los coches a los nombres Honda y Lexus
01:05 Añadamos RemoteEvent a ReplicatedStorage y renombrémoslo a SpawnCar
01:11 Haz una copia de SpawnCar y renómbralo a DeleteCar
01:18 A continuación, añade ScreenGui a StarterGui, luego añade ImageButton a ello
01:21 Establece la Position de ImageButton a {0,0},{0,200}
01:32 Haz una copia de ImageButton y establece la Position a {0,0},{0,350}
01:41 Coloquemos las imágenes en los botones, para esto necesitamos el id de la imagen. Para obtener el id primero ponemos la imagen deseada en Part. (para estos botones preparé imágenes en Toolbox)
02:01 Copia el id de la imagen de DeleteCar de la propiedad Texture
02:09 y pega este id en las propiedades Image y HoverImage del 2do ImageButton
02:19 Establece BackgroundTransparency a 1, si esta propiedad se establece a 1, el fondo no se mostrará y la interfaz gráfica será completamente transparente
02:26 Copia el id de la imagen de SpawnCar de la propiedad Texture
02:30 y pega este id en las propiedades Image y HoverImage del 1er ImageButton
02:38 Establece Background Transparency a 1
02:42 A continuación, eliminamos partes innecesarias
02:49 Renombra el 1er ImageButton a SpawnCar
02:55 Renombra el 2do ImageButton a DeleteCar
03:03 Para los botones SpawnCar y DeleteCar establece ImageTransparency a 0.5
03:10 Añade LocalScript al botón SpawnCar y renómbralo a ColorScript, este script cambia la transparencia y el color del botón cuando pasas el ratón por encima
Enlace al ColorScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/ColorScript.lua
04:09 Copia ColorScript al botón DeleteCar
04:28 Añade Frame a ScreenGui
04:30 Establece AnchorPoint a 0.5,0.5, el marco se expandirá en todas direcciones y el punto de anclaje estará en el centro del Frame
04:34 Establece la Position a {0.5,0},{0.5, 0}
04:39 Establece el Size a {0, 600},{0, 400}
04:45 Copia el color del borde del fondo (BorderColor3) al color de fondo (BackgroundColor3)
04:52 Establece BackgroundTransparency a 0.4
04:54 Elimina el borde del fondo estableciendo BorderSizePixel a 0
05:02 Añade LocalScript al botón SpawnCar, que es responsable de abrir y cerrar Frame al hacer clic en el botón SpawnCar
Enlace al LocalScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/LocalScript.lua
05:34 Añade ImageButton a Frame y establece su Size a {0,90},{0,90}
05:46 Mueve ImageButton desde el borde de Frame, establece el valor de Position a {0,5},{0,5} y renombra el botón a Lexus
05:57 Haz una copia del botón Lexus y establece el valor de Position a {0,105},{0,5}
06:03 y renombra el botón a Honda
06:08 Coloca las imágenes en los botones, para esto necesitamos el id de la imagen. Para obtener el id primero ponemos la imagen deseada en Part (para estos coches preparé imágenes en Toolbox)
06:24 Copia el id de la imagen de OrangeLexus de la propiedad Texture
06:31 y pega este id en las propiedades Image y HoverImage del botón Lexus
06:41 Eliminemos el borde del botón estableciendo el valor de BorderSizePixel a 0
06:47 Copia el id de la imagen de WhiteCar de la propiedad Texture
06:53 y pega este id en las propiedades Image y HoverImage del botón Honda
07:03 Eliminemos el borde del botón estableciendo el valor de BorderSizePixel a 0
07:08 A continuación, eliminamos partes innecesarias
07:14 Desactiva la propiedad Visible del Frame para que el marco solo se abra al hacer clic en el botón SpawnCar, de lo contrario estará abierto tan pronto como vayas a Play
07:29 En ServerScriptService añade un script de servidor y renómbralo a CarSpawner, este script generará y eliminará el coche
Enlace al script CarSpawner: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CarSpawner.lua
09:51 Añade LocalScript al botón Lexus y renómbralo a CallScript, este script llama al script de servidor CarSpawner al hacer clic en el botón con el coche deseado
Enlace al CallScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/CallScript.lua
12:25 Copia CallScript al botón Honda
12:51 Añade LocalScript al botón DeleteCar y renómbralo a DeleteScript, este script llama al script de servidor CarSpawner al hacer clic en el botón DeleteCar
Enlace al DeleteScript: github.com/denkodin/RobloxStudio/blob/master/007_CarSpawner/DeleteScript.lua
14:42 Desactiva la propiedad Visible del botón DeleteCar para que el botón solo aparezca después de que generes el coche, de lo contrario aparecerá tan pronto como vayas a Play
This is absolutely amazing ive been wanting to script for a long time and youve done it in a simple easy to understand format
Thanks Jimbo Da Boi!!!
ALERT: if your car falls through the floor when spawning, type in "clonedCar:MakeJoints()" in line 13 of the carspawner script
it isnt fixing anything
@LoveMxlly you need to do exactly what the video shows, all the way through the whole thing, or it will not work
4 years later and this still works, thank you so much bro Ur so underrated and I couldn't make my dream car game without you. I hope you reach 100k because you deserve it more than most of the other youtubers that reached 100k.
Thank you so much!
@@H2MinRobloxStudiois this connected too the how too make a dealership car playlist?
@@TheUnknownM3n3 No, the dealership has it's own car spawner with scripts that are different from this one
@@H2MinRobloxStudio oh dang it.. but thanks anyways One last thing can you help me make it with me?
@@TheUnknownM3n3 Sorry I can't, but you can make it yourself by following the steps shown in the video and if you have any issues while making it, you can write in the video's comments and I'll try to help
Simple to make, looks professional, and the tutorial is easy to follow. 10/10
Thanks @spicybbqchicken :)
same but 1000000000000000000000000000000000000000000/10
@wyatt warren just replace the car models with ur won and rename them to Lexus and Honda
I thought this was gonna be hard but it's pretty easy!
yes, and i rlly like it :)
Thank you so much! You are the type of person that can help people out. You should get a mic so you can explain even better. Anyways thank you so much! This helped me out alot
it work perfectly for my drift game you deserve the million
Thank you for actually explaining what the script does, not many ppl do that nowadays
10/10 U earn a cookie and a sub
Yoo, thank you for this, but unfortuantly my game got banned for having a Trolling GUI in the game, so i lost the script, but i am remaking the game but it's called Brooklyn. Thanks for the script. This is a top tier one. 100/100.
Edit: *Here's a sub for being awesome.*
Same bro i got banned for that
@@0beno683 You're not the only one lol-
can i check your game out?
whats your user?
dood IT ACTUALLY WOKS!!! :D if im gonna rate this video, its a 10/10.
finally , after a few years , i came back , and i finally did it (i was like too dumb to understand script before)
I'm glad everything worked out for you!
dude holy moly! this is great i have like 6 cars with this script thank you so much
The best tutorial about spawning cars
Thank you so much! These tutorials are so good and i followed them for my game and it turned out good to me 😀
a actual yt that shows a working script and the 4yrs ago is better then the others, nah im subbing and liking imagine he comments on this comment
Thank you for your support! I appreciate it a lot
I been wanting a car spawner for soo longggggg and i finally found this video and thank youuuuuuuu it worked and you gained a subscriber.
and another one : )
Really Thanks!! In the end i make working car spawner. Noble for this guy!
Breeck, thank you for your feedback!!!
You made my day so much better dude! God bless you!
The best!🎉👍🔥
I really Support This Guy. This VId Really Help's My GAME i Subbed lol
I can't spawn my car after everything I tried. Please help me!
@@H2MinRobloxStudio nvm i fixed it
How did you fix it?
Pls
@@men9288 Basically all the script parts you copy and paste in the links in the description.
Project 2411 oh
This is an amazing tutorial. I kinda made it by myself, but i understood everything and wrote EVERYTHING by myself 11/10
Omg! Absolute LIFE SAVER! This is the best tutorial by far on TH-cam and has worked wonders for me! I’m sharing this tutorial with all of my friends!
IT WORKED BRO TYSM I LOOKED THROUGH SO MANY TUTORIALS THEN I CAME ACROSS THIS TYSM BROOO
Oh my god bro thanks so mych for this scipt from me +1 sub and like keep up
thank u, this helped because now players can use gui instead of regen buttons but the only bad thing is that when u spawn something it doesnt check size so when i spawned my big bus i got stuck inside but i fixed it by changing the range of spawn but still a very nice tutorial
This is a great video! And then I saw i wasn't subscribed, so I will subscribe!
Another awesome video I was actually looking for this.
Thanks Flicz!!!
Can you make a tutorial so the cars can be spawned at their spawn points so people won’t abuse the spawn car system
for this you can just delete this sentence : clonedCar:MoveTo(player.Character.HumanoidRootPart.Position + player.Character.HumanoidRootPart.CFrame.LookVector * 15) : from the car spawner script in server script service
it should be in the second paragraph of the script.
for me it works
THIS IS BEST!
Thanks Melonrin!!!
Yeaaaaaaah
this really helped me thank you :) i liked and subscribed
Made the whole thing in about an hour, with about 10 cars, and after beautifying the menu (I also used TextButtons instead of ImageButtons to not have to screenshot and remove background all the cars). Solid tutorial!
Massive claps for this legend
woo hoo you earned your self a new subcriber
thank you best tutorial ever. Linking the scripts in the description is awsome
Thanks!!!! I’m your 100th subscriber!
Thanks! I am very happy that you are my 100th subscriber!
This guy is so under rated
NotFad3N, thank you for your opinion!
It works but the car can't be driven when it is spawned
Edit: never mind its because of the vehicle's chassis, but it still works thank u so much! got a sub my friend
Respect!! my man here
Thank you!!!
Literally the easiest tutorial to follow everything is nice and professional
Very underrated
Hello, thank you so much for everything. I have a question, how do I make them only team-using? I mean like I want the police car to be used only by the police team.
I Didn’t Spawn the car, (can you do it for me?)
This is very easy to understand and worked well! Good job.
Thx for the tutorial, It worked :D
THANKS THANKS!
one sub for you from me
Very good video it's easy to understand than other videos keep it up
Great video, continue with the great work!
Thank you so much, this helped me very much, you deserve more likes!
Subscribed, Liked the video, commented
I LOVE YOU
YOU REALLY HELPED ME
It looks so hard but it's so easy to follow. 1000000000/10
Ngl its the best tutorial ive ever experienced frl.
U earned another subscriber :D
hi didy our cars spawn multiple when you clicked ?
@@brook.aviation no
@@kertklaus2894 ok i figured it out dw
You deserve a sub dude, proud to be your 50th subscriber!!
Thank you Panda's Programming!!! I am very glad that my 50th subscriber is a developer
yoooo this actually worked, hell yeah!! thank you!!!
THANK YOU SOO MUCH! You saved me! Before I saw this video I was watching a 38 MIN VIDEO and I had to write out the script by myself. It was painful and it did not even work. Then you came saving the day! So I subed!!!!
I subbed i hope you the best your tuturial is made easier by letting us copy the code thank you so much i love your channel i hopeu the best
Bro you did good i am happy for you if did not know something you made video i love you as a fan
Thank you very much it helped me even though I don't know English xD, all the steps helped me for my game.
(I translated all this)
All I needed was the Move Comment and worked brilliantly, thank you
YES FINALLY A CAR SPAWNER THAT SPAWNS THE CAR NEXT TO YOU TYSM!
Take you so much my game hit 1 million visits just by this tutorial thank you 10/10
I will definitely sub. It’s look pretty easy to understand and 10/10
Thanks.
You have helped me obtain a lot of progress in my roleplaying game based on a neighborhood. I now will give you a subscription bro, you deserve that.
yoo thats sick im also doing a neighborhood but its not focused on roleplaying too much
lol
Hi denkodin! Thank you for all your help for my game you are a nice scripter 👌👌👍
And now i'm back with my new car game and i don't know how to make the cars pictures
You have made for the lexus and honda but i have other cars than that
Pls reply
TYSM dude u helped me a lot I almost lost my mind as it wasn't working first to open the spawn menu but I just recopied the script from the desc then it worked thanks bro
I cant thank you enough, thank you so much.
Very simple and very very good thanks !!
Dude, you are a legend. Liked and subscribed
Thank you PolarBear Gaming!!!
tysm it workedi a am so thankful i saw ur vid
This was super helpful, thanks for making this!
omg this worked very good ty
Thanks!!!
Hey there! Amazing tutorial man!! 😎 I remember trying this a few years ago and then I gave up 😅 but this year I did it but I seemed to have some trouble with it. Do you have to change anything in the script if im not using the cars you are using?? Thanks! 😄
No you shouldn't have to change anything in the script if you're using different cars from me.
What trouble did you have with it?
Here is a video. Is there any errors?? If not, I will try copy pasting the scripts again.
th-cam.com/video/skgxDGB9Xzo/w-d-xo.html
th-cam.com/video/skgxDGB9Xzo/w-d-xo.html
It didn't allow me to send the video link here but it is on my channel :)
Thanks man helped out A LOT!!
This Works. Even if you change teh name of teh car. it works 10/10
thanks alot man ! this helped me alot , here take my sub
THIS IS LITTERALY THE BEST THING EVER THANK YOU MAN PLUS ONE SUB FOR YOU!
I love how the background song is the jeffy booty booty song
probably the best tutorial ive seen, tysm
Thank you alot!
I finally can make my school driving game, no more touching with body spawners!
Amazing tysm it works.
Thank you!!1
Ur the best!
perfect vid
Thank you so much! Im currently making an RP game and i needed this!
Thank You So Much!!
i love your videos, they're so helpful :D
i am working on customization on a second place bc i can test only once on the dealership game (Crashes & errors)
Now i need a spawner and this is very useful to only do a spawner with not any dealership (you know, the crashes)
PS: i finished the dealership, That video taught me to script and work with guis
Cheers
You are OP bruv
thank you man, thank you very much
this is honnestly amazing, tysm for the tutorial
THANK YOU SO MUCH! IT LOOKS SOOO NICE, THANKS YOU FOR DOING THIS :)
999999999999/10 BEST ONE I HAVE SEEN GREAT JOB!
Used the code for intergrated into my menus. Thanks for the vid.
you make it so easy to understand, youve earned a subscriber
wow really helped me! i was trying to find some good tutorial! this was it.
Idk how you don’t have 1 million subs already
4:33 your skin look good (:
OMG IT REALLY DID WORK THANK YOU SO MUCH!
Wow you inspired me to do a rp game! :) Also your vids are super cool and easy 😎😎😎
Hey dude can you make a tutorial f how to make a mobile car control system? I really want it cause mobile users say that they cant drive cars
Thanks for making this video! Is very helpfull! Liked and subscribed! You need 1M subscribers and 56 thropies for that script and editing skills! A lot of thanks for making this videos! Proffesional scripet!
Thx bro it's working =)
Your channel is so useful For me!
Bro you even added scripts in the desc. I am satisfied of this.