the Vehicle is an object value and I'm trying to set it to the cloned car, but it does not set. Wondering if I should make the value or script in a different location?
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local VehicleCount = player.leaderstats.vehicle.Value
if VehicleCount then workspace:FindFirstChild(VehicleCount):Destroy() end
local car = game.ServerStorage.FordFocus:Clone()
local prompt = car.VehiclePrompt:WaitForChild("VehicleDriver")
prompt = player.Name
car.Parent = workspace
VehicleCount = workspace:FindFirstChild(car)
end)

2 comments
Hi! Thank you so much for answering! It writes to the object value, but now
Oops- forgot to finish writing the comment but i fixed it haha