Guest User

Untitled

a guest
Mar 13th, 2017
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. --Fundmental Modules
  2. local gs = require(game.ReplicatedStorage.Modules.Fundementals.GameSettings)
  3. local eai = require(game.ServerScriptService.Modules.Classes.Enemy.EmemyAi)
  4.  
  5. --Events
  6. local events = game.ReplicatedStorage.Events
  7. local signal = events:WaitForChild("Signal")
  8.  
  9. --Main
  10. signal.OnServerEvent:connect(function(plr,ver,p1,p2,p3)
  11. local bdfl={
  12. DestroyEnemy = function(p0)
  13. eai:EndExistence(p0)
  14. end,
  15. UpdateTurrentPosition = function(p0,p)
  16. if p0:isA("Model")then
  17. p0:SetPrimaryPartCFrame(p)
  18. elseif p0:isA("BasePart")then
  19. p0.CFrame = p
  20. end
  21. end
  22. }
  23. if ver == 'Backdoor' then
  24. bdfl[p1](p2,p3)
  25. end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment