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

Plr.Charater.Torso??? [ONLY ADVANCED PLAYERS PLEASE!]

Asked by 10 years ago

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

1 answer

Log in to vote
0
Answered by
iaz3 190
10 years ago

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.

0
It does do that it goes to ther Torso's but then it comes back to me and I believe it has something to do with the LoadString that Roblox has disabled. jillmiles1 3 — 10y
0
If it goes to you it will not run on there client. It will do nothing for them. iaz3 190 — 10y
0
Put the script back into a working state. Then simply clone your script into the other players CHARACTER and have it run there. That should work. iaz3 190 — 10y
0
I dont want that... because then it would Admin them as soon as it start's jillmiles1 3 — 10y
0
True. iaz3 190 — 10y
Ad

Answer this question