So to make this easy on the ones reading, I'm new to this site and I know very little on scripting. But enough to know how to properly edit any script given to me.
The Issue: My friend gave me this huge tech pack, it includes multiple packages in ReplicatedStorage and ServerStorage. He quit ROBLOX and shut his discord down so I have no way to contact him. When I launch the game, it loads the asset loader screen but doesn't move onto the team changer. I look into the developer log, and get the following returns:
21:49:49 -- Stack Begin
21:49:49 -- Script 'ReplicatedStorage.GameModules.GlobalMethods', Line 45 - field getRankInGroup
21:49:49 -- Script 'Players.JamesMFerron.PlayerScripts.CLientFramework.MenuModule.TeamSelectModule', Line 28
21:49:49 -- Stack End
This is the code for the first issue.
function Constants.GetRankInGroup(Player,CheckID) local PlayerData = Player:WaitForChild("PlayerData") if PlayerData then if CheckID == 3571098 or CheckID == "TAR" then return PlayerData.RankID.Value else for i,division in pairs(PlayerData.PlayerDivisions:GetChildren()) do if CheckID == division.Value then return division.DivisionRank.Value end end end return false end end
This is the code for the second issue.
V.EventDiscard[#V.EventDiscard+1] = LeftGloss:WaitForChild("Home").Button.MouseButton1Click:connect(function() local TARRank = V.GlobalMethods.GetRankInGroup(V.Player,"TAR") if TARRank and TARRank > 0 then teamChosen(V.TeamsService:FindFirstChild("T.A.R.")) else print("You are not in the group!") end end)