I don't know why this isn't working. I made GroupID and GroupRank and TrainerTeam in ServerScriptService>HostService but I don't know what's wrong.
This is a Local Script.
local Player = game.Players.LocalPlayer
local SSS = game:GetService("ServerScriptService")
local HS = SSS:WaitForChild("HostService")
local GroupID = HS:WaitForChild("GroupID").Value
local GroupRank = HS:WaitForChild("GroupRank").Value
local TrainerTeamColor = HS:WaitForChild("TrainerTeam").Value
script.Parent.MouseButton1Down:connect(function()
if Player:GetRankInGroup(GroupID) >= GroupRank then
Player.TeamColor = TrainerTeamColor
Player.Character:BreakJoints()
end
end)
^That's the output. Apparently it's not getting HostService. But I made sure I named the Folder right and I put the right name in the script. I don't get what's happening.

1 comment
Actually, it was just ROBLOX messing up like usual. I have other scripts that work like this, it was just a problem of finding "HostService" in that one script.