I'm making a tool for a friend and I'm not understanding why the car isn't moving. (the car is a Model)
local tool = script.Parent
local clickEvent = tool.ClickEvent
local spawnblock = game.Workspace.spawnblock
local clickEventConnection
local function createPart(location)
local car = game.ReplicatedStorage.Assets.Car
car:clone()
car.Parent = game.Workspace
car:SetPrimaryPartCFrame(Vector3(spawnblock.CFrame))
end
local function onClick(player, clickLocation)
createPart(clickLocation)
end
local function onEquip()
clickEventConnection = clickEvent.OnServerEvent:connect(onClick)
end
tool.Equipped:connect(onEquip)

2 comments
It says "Unable to cast Vector3 to CoordinateFrame"
im not getting that error. i must didnt do what you did