#No valid CFrame member

1 messages · Page 1 of 1 (latest)

vagrant maple
#

I am trying to make my first ever game, going for a tower defense based on a story me and my friends are working on, but when I try summoning the enemy, it says CFrame is not a valid member of Folder "Workspace.Park.Spawn" , here's the code I have atm. [Sorry if tag is wrong]
if mobExists then
--move into workspace
local newMob = mobExists:Clone()
newMob.HumanoidRootPart.CFrame = map.Spawn.CFrame
newMob.Parent = workspace

tiny wigeon
vagrant maple
#

The thing is, Spawn isn't a folder, it's a part

tiny wigeon
steady obsidian
#

srry for bumping but try :WaitForChild() script might be trying to get something that hasnt loaded in