so I created this script today, right, a car spawn in a surfacegui, only gamepass the car but when I go to test it says Argument 1 nil or missing tell me what's wrong in the script.
script.Parent.MouseButton1Click:Connect(Function(Player)
if game:GetService("GamepassService"):PlayerHasPass(Player, 21318770) then
local Car = game.ServerStorage.Car
local Clone = Car:Clone()
clone.Parent = workspace
clone.MakeJoints()
else
game:getService("MarketPlaceService"):PromptPurchase(Player, 21318770)
script.parent.Image = "rbxassetid://600802277"
