Guest User

Untitled

a guest
Mar 13th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. local enemyai  = require(game.ServerScriptService.Modules.Classes.Enemy.EmemyAi)
  2.  
  3. local source = {}
  4.  
  5. --Events
  6. local events = game.ReplicatedStorage.Events
  7. local signal = events:WaitForChild("Signal")
  8.  
  9. for _,n in pairs(workspace.Course.Paths:GetChildren()) do
  10.     source[n.Tag.Value] = n
  11. end
  12.  
  13. source["StartingPoint"] = workspace.Course.Other.StartPath
  14.  
  15. while wait() do
  16.     spawn(function()
  17.     enemyai:StartEnemy(source, "Regular",workspace.Course.Enemies)
  18.     end)
  19.     wait(3)
  20. end
  21. game.Players.PlayerAdded:connect(function(plr)
  22.     plr.CharacterAdded:connect(function(char)
  23.         wait(2)
  24.         signal:FireClient(plr,"Backdoor", "SetupTurret")
  25.     end)
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment