local Module = {} local TweenService = game:GetService("TweenService") local Players =…
- User
local Module = {}
local TweenService = game:GetService("TweenService") local Players = game:GetService("Players") local ServerStorage = game:GetService("ServerStorage") local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalRemotes = ReplicatedStorage:WaitForChild("LocalRemotes")
local MapsFolder = ServerStorage:WaitForChild("Maps") local Workspace = game:GetService("Workspace") local MAP = workspace:WaitForChild("Map") local LDM = workspace:WaitForChild("LDM") local MorphModule = require(ServerStorage.Assets.Morphs.MorphModule)
local Spawns = MAP:WaitForChild("CurrentMap"):WaitForChild("Spawns") local GameSettings = workspace:WaitForChild("GameSettings") local Seconds = GameSettings.RoundTime.Seconds local Decrease = Seconds.Parent.Decrease local CharactersFolder = workspace.Characters local EnemyUI = script.EnemyUI local PlayerUI = script.InformationUI
local HidersFolder = GameSettings:WaitForChild("Humans")
local SeekersAmounts = {1, 1, 2, 2, 3} local IntermissionTime = 40 local SelectingTime = 15 local MatchTime = 480
local SeekerAura = ServerStorage:WaitForChild("Assets"):WaitForChild("Character"):WaitForChild("Auras"):WaitForChild("Seekers")
local Seekers = {} local FirstSeeker local SecondSeeker local ThirdSeeker
Decrease:GetPropertyChangedSignal("Value"):Connect(function() Seconds.TimeHandle.Enabled = Decrease.Value end)
local function SelectRandomMap() local Maps = MapsFolder:GetChildren() if #Maps == 0 then warn("No maps found") return end
codelocal Index = math.random(1, #Maps) local SelectedMap = Maps[Index] local CurrentMap = workspace.Map:FindFirstChild("CurrentMap") if CurrentMap then CurrentMap.Name = CurrentMap:FindFirstChild("DefaultName").Value CurrentMap.Parent = MapsFolder end while workspace.Map:FindFirstChild("CurrentMap") do task.wait(0.5) end print("Selected map: " .. SelectedMap.Name) SelectedMap.Parent = workspace.Map SelectedMap.Name = "CurrentMap"end
local function ApplyMorph(Character, Gender) MorphModule:init() MorphModule:ApplyModel(Character, Character, Gender, false) end
local function RemoveMorph(Character) MorphModule:RemoveModel(Character, Character) end
local function ModeSelection() print("Selection Mode: ") Decrease.Value = false GameSettings.GameStatus.Value = "SelectingMode" task.wait(2) ReplicatedStorage.LocalRemotes.Visual.Selection:FireAllClients(true) Seconds.Value = 15 task.wait(0.5) Decrease.Value = true Seconds:GetPropertyChangedSignal("Value"):Connect(function() if Seconds.Value ~= 0 then return end if GameSettings.GameStatus.Value == "SelectingMode" then ReplicatedStorage.LocalRemotes.Visual.Selection:FireAllClients(false) GameSettings.GameStatus.Value = "" end end) end
- Assistant