local JailSystemFolder = ReplicatedStorage:WaitForChild("JailSystem")
local GetPrison = JailSystemFolder:WaitForChild("GetPrison")
local GetPolice = JailSystemFolder:WaitForChild("GetPolice")
local GetPrisonTeamName = GetPrison:InvokeServer()
local GetPoliceTeamName = GetPolice:InvokeServer()
if tostring(GetPlayer.Team) ~= GetPrisonTeamName and tostring(GetPlayer.Team) ~= GetPoliceTeamName then
part I am having trouble with is line 8

1 comment
in addition, GetPlayer is nil in the script from the error, so you should also say that in the answer too