Facebook
From Скрипт для спавну, 3 Weeks ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 137
  1. working = true
  2. local distance = 0
  3. while working do
  4.  for _, player in pairs(game.Players:GetPlayers()) do
  5.   distance = player:DistanceFromCharacter(script.Parent.Position)
  6.   if (distance > 0) and (distance < 50) then
  7.    working = false
  8.    script.Parent.Parent.SpawnPoint.Fire.Enabled = true
  9.    script.Parent.Parent.SpawnPoint.Fire.Size = 100
  10.   end
  11.  end
  12.  wait(1)
  13. end
  14. wait(2)
  15. D_num = script.Parent.Parent.Quantity
  16. while D_num.Value < 10 do
  17.  if distance < 50 then
  18.    local Dem
  19.   Demon.Parent = game.Workspace.NPC
  20.   Demon:MoveTo(script.Parent.Parent.SpawnPoint.Position )
  21.   D_num.Value += 1
  22.  end
  23.   local destinati
  24.  distance = (destination - script.Parent.Position).magnitude
  25.  wait(5)
  26. end
  27.