I am now working on that a player joins the game and a GUI/UI will popup, but it doesn't work..
Here's the code
local Players = game:GetService("Players") local Main = game.StarterGui.Menu.Main function playerAdded(player) Main.Visible = true print("hey its ur boi testing") end game.Players.PlayerAdded:Connect(playerAdded)
and btw It doesn't even print it. + There is no errors
local Players = game:GetService("Players") local Main = game.StarterGui.Menu.Main--this is the gui that is in starter gui but not what is in the players gui --starter gui is a service that clones all what is in it o the player that joined so if you are making it visible its not making the clones it just make what is in starter gui visible --this should work function playerAdded(player) player.PlayerGui.Menu.Main.Visible = true print("hey its ur boi testing") end game.Players.PlayerAdded:Connect(playerAdded)
local Players = game:GetService("Players") local Main = game.StarterGui.Menu.Main function playerAdded(player) player.PlayerGui.Menu.Main.Visible = true print("hey its ur boi testing") end game.Players.PlayerAdded:Connect(playerAdded)
Try this it might not work but it doesnt know what Main.Visible is so referencing Gui will fix it I think sorry if It doesnt work ill find other solution.