Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local powerup = game.ServerStorage.Powerup
- local timer = 7
- local y = 3.5
- function spawnPowerup()
- local rangeX = math.random(-60, 36)
- local rangeZ = math.random(-137.5, -41.5)
- local spawnedPowerup = powerup:Clone()
- spawnedPowerup.Parent = game.Workspace
- spawnedPowerup.Position = Vector3.new(rangeX, y, rangeZ)
- end
- while true do
- spawnPowerup()
- wait(timer)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement