So I am trying to make a system that clones the model in a random position. Here is my script:
local spawner = game.ReplicatedStorage.SpawnCage1
local cage = game.ServerStorage.Cage:Clone()
local cage1 = cage:GetChildren()
if spawner.Value == true then
cage.Parent = workspace
local position1 = Vector3.new(0,0,0)
local position2 = Vector3.new(10,0,0)
local position3 = Vector3.new(20,0,0)
local position4 = Vector3.new(30,0,0)
local chosenPos = {position1,position2,position3,position4}
cage.Position = math.random(1,#chosenPos)
elseif spawner.Value == false then
cage.Parent = game.ServerStorage
end
Here is the error in output:
18:23:29.929 - Position is not a valid member of Model
If someone could help me out here that would be very nice. Thanks in advance.

1 comment
Wow that was a quick answer lol, I literally just posted this.