Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local DB = require(game.ReplicatedStorage.Database)
- local UnitStorage = game.ServerStorage:WaitForChild("Units")
- local Spawn = game.Workspace:WaitForChild("Spawner")
- local ActiveUnits = {}
- local function CreateUnit(class,team)
- local NewModel = UnitStorage[class]:Clone()
- NewModel.Name = class
- ActiveUnits[NewModel] = {}
- ActiveUnits[NewModel]["Team"] = team
- NewModel.Parent = game.Workspace
- NewModel:MoveTo(Spawn.Position)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement