Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

!Host command isn't working. This script is as script.?

Asked by 2 years ago

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

0
Why do you have >= ? ghostbettert 30 — 2y
0
So that ranks equal to and higher could use it Bartosz_olsztyn 16 — 2y
0
StarterGui doesn't update each player's UI; it's just a container that replicates everything inside it to each player's screen. sngnn 274 — 2y

Answer this question