You can write your topic however you want, but you need to answer these questions:
-
So, I have this monster model in ServerStorage and I want to copy it and move it to the workspace spawn area.
-
It gave me errors like PivotTo is not a valid member of CFrame and Vector3
-
I tried looking for solutions on the hub, but to no avail, I still don’t understand why PivotTo can’t be used on CFrames even though it is related to CFrames.
local monsterChosen = "Monster"
local monster = game.ServerStorage:FindFirstChild(monsterChosen):Clone().PrimaryPart.CFrame
local map = game.Workspace.Map:FindFirstChild("Forest")
local monsterSpawn = map:FindFirstChild("MonsterSpawn"):GetPivot()
monster:PivotTo(monsterSpawn * CFrame.new(0,1,0))
print("Monster spawned")