I have been trying to make a vehicle spawn next to the player when the inventory spawn button is clicked. I got the vehicle to clone and spawn next to me, but it doesn't drive when I go in. I am testing the spawn button with the Van in the toolbox, the scripts and the Vehicle Seat will not work.
local player = game.Players.LocalPlayer local charPart = player.Character.HumanoidRootPart local Inv = player.PlayerGui.Inventory local InvSpawn = Inv.Frame.SpawnButton InvSpawn.MouseButton1Click:connect(function() if true then local originalVan = game.Workspace.Van local cloneVan = originalVan:Clone() cloneVan.Parent = game.Workspace cloneVan:SetPrimaryPartCFrame(CFrame.new(charPart.CFrame.X + 10, charPart.CFrame.Y + 5, charPart.CFrame.Z)) cloneVan:MakeJoints() end end)
Van Model : https://www.roblox.com/library/187731990/Transporter-Van
This has been answered somewhere else.