-
What I Want To Achieve: I am trying to make my script cleaner for a round system.
-
What is the issue? Trying to use bindable events but the events are not firing for some reason.
-
What solutions have you tried so far? I have looked at a few other posts but have not found a solution. I have also tried rearranging/rewriting my code.
A function from the main script: (All the other functions are like this so here is one, but if more of the script is needed let me know)
-- All the functions are put in a while loop if that matters
function StartRnd()
Remotes.StartRound:Fire(Players, Status, Teams, Remotes, GameSpawn, DefaultMusicIds, CustomMusicIds, SeatedPlrs, playersInGame)
MainModule:CheckBEFORERnd(ResetChairs, StartRoutine, playersInGame, SeatedPlrs)
_G.tpcheck = false;
-- I know it is still a bit messy, it is better than what it was before though.
end
Also, here are my variables for the above line of code:
local MainModule = require(game.ReplicatedStorage.MainModule)
local Players = game:GetService("Players")
local Status = game.ReplicatedStorage["Status"]
local Teams = game.Teams
local Remotes = game.ReplicatedStorage:FindFirstChild("Remotes")
local GameSpawn = game.Workspace.GrassMap.StartSpawn
local DefaultMusicIds = {927037476, 2624361362}
local CustomMusicIds = {}
local SeatedPlrs = {}
local playersInGame = {["In"] = {}, ["Out"] = {}}
Thanks for any help, I am really stuck.