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

Why wont this player has entered gui work?

Asked by
Jurdy 0
9 years ago
game.Players.PlayerAdded:connect(function(plr)
        game.StarterGui.GreenieEntered.Frame.Visible = true
        game.StarterGui.GreenieEntered.Frame.TextLabel.Text = "A Greenie".."("..plr.Name..")".."has joined The Glade!"
        wait(30)
        if game.StarterGui.GreenieEntered.Frame.Visible == true then
            game.StarterGui.GreenieEntered.Frame.Visible = false
        end
    end)

-- for some strange reason it doesn't work! please help...

1 answer

Log in to vote
2
Answered by 9 years ago

Your script appears just fine, apart from the fact that you are editing StarterGui! That means it won't show up to anyone unless they respawn. To edit GUIs in real time, you should edit PlayerGui.

game.PlayerGui.GreenieEntered.Frame.Visible = true

I hope this answer helps! If you found it helpful, you can upvote and accept it.

Ad

Answer this question