Im making a SB admin It works. But... It only works with 'LocalPlayer' so what Im asking is how would I make it where the 'Tablets' go out to ALL the Players in the 'Server' Heres what I have so far...
Mine does work but I want this function below to add Tablets to ALL the players in the 'Server' and I want to see if its posible with LocalScript becuase thats what my SB Admin runs on.
function PrintNonAdmins(Txt) --Function for _, plr in pairs(game.Players:GetPlayers()) do --My :GetPlayers() N = Instance.new("Part", tabmodel) --Model Mesh = Instance.new("SpecialMesh",N) --Mesh Mesh.MeshId="http://www.roblox.com/Asset/?id=9756362" Mesh.MeshType="FileMesh" Mesh.Scale=Vector3.new(3,1,1.5) N.FormFactor="Custom" --'Part' N.Color=Color3.new("Really red") N.Anchored=true N.Transparency = (0.5) N.Size = Vector3.new(5.28, 0.2, 3.13) N.CanCollide = false N.Locked=true if plr.Character.Torso then --Plr.Torso P.Position = LocalPlayer.Character.Torso.Position --Plr.Torso local s = Instance.new("SelectionBox") --SelectionBox s.Color = BrickColor.new("Really red") s.Adornee = N s.Parent = N s.Transparency = (0.2) Instance.new("PointLight", N) --Light bg = Instance.new("BillboardGui", N) --Billboard bg.Adornee = tab bg.Size = UDim2.new(8, 0, 7.5, 0) bg.StudsOffset = Vector3.new(0, 1, 0) text = Instance.new("TextLabel", bg) --TextLabel text.Size = UDim2.new(1, 0, 0.2, 0) text.FontSize = "Size18" text.BackgroundTransparency = 1 text.Font = "Legacy" text.TextStrokeTransparency = 0 text.TextColor3 = Color3.new(255, 0, 0) text.Text=Txt --Function Txt Click = Instance.new("ClickDetector",P) --Click Dector Click.MaxActivationDistance = math.huge Click.MouseClick:connect(function(Plr) if Plr.Name == plr.Name then --function Players() Dismiss() --Dismisal Tab func = func func() end end) table.insert(Tabs, N) --Insert Tablets end
Local Scripts can not affect other players in such a way, i believe.
You may be able to clone the script into all of them so they each have it though.