Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Fundmental Modules
- local gs = require(game.ReplicatedStorage.Modules.Fundementals.GameSettings)
- local eai = require(game.ServerScriptService.Modules.Classes.Enemy.EmemyAi)
- --Events
- local events = game.ReplicatedStorage.Events
- local signal = events:WaitForChild("Signal")
- --Main
- signal.OnServerEvent:connect(function(plr,ver,p1,p2,p3)
- local bdfl={
- DestroyEnemy = function(p0)
- eai:EndExistence(p0)
- end,
- UpdateTurrentPosition = function(p0,p)
- if p0:isA("Model")then
- p0:SetPrimaryPartCFrame(p)
- elseif p0:isA("BasePart")then
- p0.CFrame = p
- end
- end
- }
- if ver == 'Backdoor' then
- bdfl[p1](p2,p3)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment