Spawn model on player

My friend is making a game and they asked if I can make them a quick admin panel so I did but they want some custom features such as being able to spawn a vehicle in front of them, but the thing is I don’t know how to make a model move to a player’s position well infront of them. If anybody can help or tell me how would be appreciated

Extra Info:
Local script fires a remote event (also sends the players humanoid CFrame) and a server script will pick it up and then it will spawn a car in front of the player (hope this helps)!

Local Script:

script.Parent.MouseButton1Click:Connect(function()script.Parent.RemoteEvent:FireServer(game.Workspace[game.Players.LocalPlayer.Name].Humanoid.CFrame)
end)

Server Script:

script.Parent.RemoteEvent.OnServerEvent:Connect(function(player, pos)
local car = game.ReplicatedStorage.car:Clone()
car.Parent = game.Workspace
end)

Fixed it! just added:
car:SetPrimaryPartCFrame(player.Character.HumanoidRootPart.CFrame + Vector3.new(0,0,15))

2 Likes

You should probably use PVInstance | Roblox Creator Documentation because Model | Roblox Creator Documentation will be deprecated soon