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

Why is this not working?

Asked by 9 years ago
function OnJoinz()
    local g=game.StarterGui.ScreenGui.TextBox
    g.Position.new(0,600,0,200)
    g.Text=('Green is Starting Game.Red is Not Enough Players')

end
game.Players.PlayerAdded:connect(OnJoinz)


0
I edited my answer the new one should work docrobloxman52 407 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

This is how you would make it so that the player that joins only sees it:

Game.Players.PlayerAdded:connect(function(player) -- defining the player when they join
    local g = player.PlayerGui.ScreenGui.TextBox -- Defining the gui
    g.Position.new(0,600,0,200)
    g.Text=('Green is Starting Game. Red is Not Enough Players')
end)
0
I onlY wanted the player that just joined to see the gui. Accelital -7 — 9y
0
Ok let me test cause your old script didn't show the Gui know why I don't... Accelital -7 — 9y
Ad

Answer this question