-
What do you want to achieve? I want the car to spawn near the player.
-
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)
