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)

10 comments
Please use code blocks. And line 1 is cut off, please post the full line.
Of which part?
Line 1 of the second issue.
Oh, it's not cut off. The text post just indented it automatically. It won't let me undo it.
Just comment what the line says.
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)
I'm not screwing with you, I'm copying it straight from studio. It keeps indenting.
Your if statement. Remove "TARRank and" so the if statement is only: if TARRank > 0 then
Okay, it doesn't seem to fix anything. However these are also popping up: "ContentProvider:Preload() failed for rbxassetid://494086664"
569368174,517513277,399490164 are also in the assetids, in separate lines