Frame = game.StarterGui.ScreenGui.WarlandsGameInfo
function onClick()
Frame.Visible = true
end
script.Parent.MouseButton1Click:connect(onClick)
WHen I click the button, nothing happens.
Frame = game.StarterGui.ScreenGui.WarlandsGameInfo
function onClick()
Frame.Visible = true
end
script.Parent.MouseButton1Click:connect(onClick)
WHen I click the button, nothing happens.
Because you have to get all the players, it doesnt update, try this
Frame = ScreenGui.WarlandsGameInfo
function onClick()
for k, p in pairs(game.Players:GetPlayers()) do
p.PlayerGui.Frame.Visible=true
end
script.Parent.MouseButton1Click:connect(onClick)
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Thanks. But what for k, p in pairs(game.Players:GetPlayers()) means?
http://wiki.roblox.com/index.php?title=Function_dump/Core_functions#pairs