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

0

Please use code blocks. And line 1 is cut off, please post the full line.

0

Of which part?

0

Line 1 of the second issue.

0

Oh, it's not cut off. The text post just indented it automatically. It won't let me undo it.

0

Just comment what the line says.

0

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)

0

I'm not screwing with you, I'm copying it straight from studio. It keeps indenting.

0

Your if statement. Remove "TARRank and" so the if statement is only: if TARRank > 0 then

0

Okay, it doesn't seem to fix anything. However these are also popping up: "ContentProvider:Preload() failed for rbxassetid://494086664"

0

569368174,517513277,399490164 are also in the assetids, in separate lines