Model spawning at the wrong position

  1. What do you want to achieve? I want the car to spawn near the player.

  2. What is the issue? The car always spawns at the same position.

local Replicated = game:GetService("ReplicatedStorage")
local CarSpawnEvent = Replicated.CarSpawn


CarSpawnEvent.OnServerEvent:Connect(function(Player,SpawnValue)
	SpawnValue = SpawnValue + Vector3.new(10,0,0)
	local Car = game.ServerStorage["Police Car"]
	print(SpawnValue)
	local CarClone = Car:Clone()
	CarClone.Parent = workspace
	CarClone:MoveTo(Vector3.new(SpawnValue))
end)

Remove Vector3.new

CarClone:MoveTo((SpawnValue))

No need to vector.new a vector value or else it will create a 0,0,0 vector.

btw you can use this property Called PrimaryPart:

image

and later you can set models CFrame by setting primary part’s CFrame: Model:SetPrimaryPartCFrame(CFrame)