So in this video of Alvin Blocks where he makes a car Shop gui (https://www.youtube.com/watch?v=zM6QhIn_JBY) But you can spawn multiple cars when you've bought it.
I have a script that should remove the old car after new one is spawned but i cant get it to work. Am i doing something wrong or i need to put the script somewhere else?
local theOldCar=workspace:FindFirstChild('CarName')
if theOldCar~=nil then theOldCar:Destroy()?

4 comments
I think the question mark at the end on line 2 near :Destroy() is the reason.
Let the spawn script handle removing the old car model
Post the script that spawns the car when a player purchases it
Didnt work