local Clicker = script.Parent --ClickDetector
local Object = game.ReplicatedStorage:WaitForChild("Car")
local ObjectSpawn = game.Workspace:WaitForChild("Spawner")
Clicker.onClicked:Connect(function()
local CloneObject = Object:Clone()
CloneObject.Parent = game.Workspace
ObjectSpawn.CFrame.p -- Doesnt work (has a red line)
end)
what im trying to do is making a spawn button that spawns a car at the place where the spawner is(not the spawn button but another part) but it doesnt seem to work how do i fix

2 comments
so it should look like this?
It's just an example. You should make your one with the example I made, it's very simple if you just use another part's CFrame.