local ReplicatedStorage = game:GetService("ReplicatedStorage")
game.Players.PlayerAdded:Connect(
function(Plr)
function scanInStorage(placeToScan)
for _, Object in pairs(placeToScan:GetChildren()) do
scanInStorage(Object)
local ExampleListing =
Plr.PlayerGui:WaitForChild("CarDealer").Frame.ScrollingFrame
local Clone = ExampleListing.Example:Clone()
Clone.Parent = ExampleListing
wait()
local Price = Object.Config.Price
local Name = Object.Name
local PriceText = Clone["Vehicle Price"].Text
local NameText = Clone["Vehicle Name"].Text
PriceText.Text = "Our Price: £" .. tostring(Price.Value)
NameText.Text = Name
Clone.Visible = true
Clone.Purchase.MouseButton1Down:Connect(
function()
local Vehicle = Object
local CloneVehicle = Vehicle:Clone()
CloneVehicle.Parent = game.Workspace
end
)
end
end
scanInStorage(ReplicatedStorage:FindFirstChild("Vehicle Folder"))
end
)
its prob gonna be rly obvious any help is appreciated
error: Config is not a valid member of BoolValue "ReplicatedStorage.Vehicle Folder.John Deere Gator.Body.Brakes.on"
error line: local Price = Object.Config.Price

1 comment
line 15