Hello i have a question. Why my script isn't working?

local GroupId = 14223507
local AllowedRank = 244

game.Players.PlayerAdded:Connect(function(Player)
	Player.Chatted:Connect(function(chat)
		if chat =="!Host" and Player:GetRankInGroup(GroupId) >= AllowedRank then
			game.StarterGui.ScreenGui.Host.Text = Player.Name
		end
	end)
end)

Please Help.

Thanks Everyone

3 comments

0

Why do you have >= ?

0

So that ranks equal to and higher could use it

0

StarterGui doesn't update each player's UI; it's just a container that replicates everything inside it to each player's screen.