Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local enemyai = require(game.ServerScriptService.Modules.Classes.Enemy.EmemyAi)
- local source = {}
- --Events
- local events = game.ReplicatedStorage.Events
- local signal = events:WaitForChild("Signal")
- for _,n in pairs(workspace.Course.Paths:GetChildren()) do
- source[n.Tag.Value] = n
- end
- source["StartingPoint"] = workspace.Course.Other.StartPath
- while wait() do
- spawn(function()
- enemyai:StartEnemy(source, "Regular",workspace.Course.Enemies)
- end)
- wait(3)
- end
- game.Players.PlayerAdded:connect(function(plr)
- plr.CharacterAdded:connect(function(char)
- wait(2)
- signal:FireClient(plr,"Backdoor", "SetupTurret")
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment