Hello, I am currently needed help with making this Car Spawner script to just spawn for free as you can see I have attempted to make it free but you still have to buy it for $10k not $0. I have tried a lot and I would like it if someone could give me some insight to how to make it free or remove the money needed part intirely.
local P = script.Parent
local player = P.Parent.Parent
local index = 1
local vehicles = {
-- {NAME , THUMBNAIL ID}
{"Black Taurus RCMP" , 0}, --LEAVE ALL THUMBNAIL ID AS 0. THERE IS NO POINT FOR A PICTURE.
{"Crown Vic RCMP" , 0},
{"Undercover RCMP" , 0},
{"Undercover RCMP" , 0},
{"Unmarked Ford Tarus RCMP" , 0},
}
wait(0.5)
-- GUI vars
local bg = P.BG
-- Helper function
function SetInformation(index)
bg.I.Image = "http://www.roblox.com/thumbs/asset.ashx?assetId="..vehicles[index][2].."&x=420&y=420"
bg.T.Text = vehicles[index][1]
end
local locked = false
bg.S.MouseButton1Click:connect(function()
local Money = player.leaderstats:FindFirstChild("Money")
if Money.Value > 0 then
Money.Value = Money.Value - 1
if (locked) then return end
locked = true
local vehicleName = player.Name.."Car"
local model = workspace:FindFirstChild(vehicleName)
if (model) then model:Destroy() end
model = game.ServerStorage.Vehicles:FindFirstChild(vehicles[index][1]):Clone()
model.Name = vehicleName
model.Parent = game.Workspace
model:MakeJoints()
model:MoveTo(P.Regen.Value.Position)
P:Destroy()
locked = false
else
script.Parent.BG.S.Text = "Not Enough Money, $1.00 Needed!"
wait(3)
script.Parent.BG.S.Text = "Select"
end
end)
bg.B.MouseButton1Click:connect(function()
index = index - 1
if (index < 1) then index = #vehicles end
SetInformation(index)
end)
bg.N.MouseButton1Click:connect(function()
index = index + 1
if (index > #vehicles) then index = 1 end
SetInformation(index)
end)
bg.Q.MouseButton1Click:connect(function()
P:Destroy()
end)
SetInformation(index)

4 comments
Okay, thank you I will test it, but if it doesn't work I will post a little bit more scripts. I will post the Car Spawner script it self I guess.
@Zachz_Attack do not make new questions, edit this one
@DanzLua okay, I currently have found the other script. All I want to do is make it so these cars are free instead, of costing money I will post the next script in.
@DanzLua, I posted the next info below on my Answer version of the Money Script that you found out also.