Hi I am trying to clone a model from replicated storage and spawn it in the game at a certain point, but it only spawns the spider once and doesn't spawn it in the right position. Here is my code
local offset = Vector3.new(0,0,5)
while true do
wait()
if myHuman.Health <= 250 then
outerStomach.Transparency = 1
splat:Play()
scream:Play()
boomAnim:Play()
for i = 1,5 do
local spider = game.ReplicatedStorage:FindFirstChild("Spider")
local spiderclone = spider:Clone()
spiderclone.Parent = workspace
spiderclone.Cframe = outerStomach.Cframe*offset
print("Spawned")
end
break
end
end

1 comment
I did that thank you, but this didn't solve the problem