Hello, I am trying to make a car spawner gui for my testing game. Here's the code.
script.Parent.MouseButton1Click:connect(function(GetCar)
local Mod = game.ServerStorage.ToyotaChaser --Change test to whatever you have named the item you want to spawn
local clone = Mod:clone()
clone.Parent = workspace
clone:MakeJoints()
end)
But it gives me an error, and says ToyotaChaser is not a valid member of ServerStorage, even though there's a model named ToyotaChaser in ServerStorage.

1 comment
I'm assuming you're using a local script, and if so, local scripts can't access ServerStorage. Also, you're cloning the vehicle on the client, so only you will see it and the vehicle might not work properly. You can get around this by using remote events : https://developer.roblox.com/articles/Remote-Functions-and-Events