local players = game.Players:GetChildren() for i,v in pairs(players) do v.PlayerGui.ScreenGui.Frame.Visible = true end
is this how for i,v in pairs(players)do work?
Incase a user doesn't have the gui and the script breaks, use this:
local players = game.Players:GetChildren() for i,v in pairs(players) do if v and v:FindFirstChild("PlayerGui") ~= nil and v.PlayerGui:FindFirstChild("ScreenGui") ~= nil then v.PlayerGui.ScreenGui.Frame.Visible = true end end
Do you even know what for i, v are actually? and what GetChildren() does?