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
#No valid CFrame member
1 messages · Page 1 of 1 (latest)
Well "Spawn" is a folder and doesn't have a CFrame.
Does "Spawn" have spawn points in it?
The thing is, Spawn isn't a folder, it's a part
Do you have multiple things named "Spawn" in "Map"
srry for bumping but try :WaitForChild() script might be trying to get something that hasnt loaded in