I’m trying to make it where a script will pick a random model from a folder and then will teleport that model.
local CarFolder = game.ReplicatedStorage.Cars
local items = CarFolder:GetChildren()
local randomItem = items[math.random(1, #items)]
randomItem:Clone().Parent = game.Workspace
randomItem:SetPrimaryPartCFrame(script.Parent.CFrame)
Up above is what I have so far and is a script located in a part. I don’t know what went wrong and studio isn’t giving me and errors. Thanks.