im making a script that will randomly spawn monsters. I have that done. The way it works is that when the monster is spawned, it will set its parent to a folder in the workspace. I also want all the monsters to be facing the player, that's done with this code
--"IsAspider" is the monster(s)
IsAspider.CFrame = CFrame.new(IsAspider.Position, Vector3.new(characters.Position.X, IsAspider.Position.Y, characters.Position.Z)) --i have that in a loop
i need a way to have every monster in the folder be the "IsAspider" variable. I thought that would be easy by doing this:
while true do
wait()
for i, v in ipairs(workspace.wherespidersgo:GetChildren()) do
IsAspider = v
end
end
However, what that does is whenever another monster spawns, the one before it will cease rotation. Anyone know why it could be doing this?
