GetRankInGroup Yielding Scripts

There is a bug on the engine developers are having where GetRankInGroup is yielding the script and not returning the current rank in the group as shown here. It only returns the ranks for certain players with code that worked yesterday.

One player’s: player1
Another player’s: player2

Code:

warn("HEY IM ALIVE!!")

repeat wait() until game.Players.LocalPlayer.Character

warn("character")
warn("CURRENT RANK BELOW")
warn(game.Players.LocalPlayer:GetRankInGroup(1016598))
warn("RANK SHOULD BE ABOVE!")

if game.Players.LocalPlayer:GetRankInGroup(1016598) >= 40 then
	print'destroy staff wall'
	game.Workspace.ImportantModels.StaffWall:Destroy()
else
	print'in cashierwall'
	script.CashierWall.Parent = game.Workspace.ImportantModels
end

if game.Players.LocalPlayer:GetRankInGroup(1016598) < 60 then
	print'chef wall in'
	script.ChefWall.Parent = game.Workspace.ImportantModels
end

The DataStore is also having some issues when it just worked without filling the queue yesterday. The image below shows the first few requests from the server.

2 Likes

This topic was automatically closed after 1 minute. New replies are no longer allowed.