I've been trying to recreate a IOS game in which on different floors the spikes are randomly generated in different locations. I've hardly ever scripted in my life and have been trying to use a couple of free models to make these works, but they don't seem to work and so I've came here for assistance.
This is what I've gotten from a free model and edited a bit, but it doesn't work.
while true do
c = game.Workshape.Spike:clone()
c.Parent = Workspace
c.Position = Vector3.new(math.random(-60,60), 40, math.random(-60,60))
wait(0)
end
Thank you for any help you give.

1 comment
any error messages? why is there a 0 second delay?