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

How do i make this GUI show to everyone not LocalPlayer?

Asked by 10 years ago

This is not as LocalScript, it is my Games Main Script, Thanks if you can help

wait(2)
script.Game.Value = false
wait(5)
game.Lighting.GameThing:Clone().Parent = game.Players.LocalPlayer.PlayerGui
wait(20)
game.Players.LocalPlayer.PlayerGui.GameThing:Remove()
wait()
game.Players.LocalPlayer.PlayerGui.Progress:Remove()
game.Players.LocalPlayer.PlayerGui.Spectate:Remove()
wait()
local Map = game.Lighting.Map:clone()
Map.Parent = game.Workspace 
Map:makeJoints()
Players = game.Players:GetChildren()
local Players = game.Players:GetChildren()
for i = 1, #Players do
Players[i].Character:MoveTo(Vector3.new(-5.4, 4.39, -64.7))
script.Game.Value = true
end 
0
If it is the main script and not a "LocalScript", then why are you using LocalPlayer? Lacryma 548 — 10y
0
How would if fix it? Im aware of the Issue now though thanks. GodOfWar9111 15 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago
for k, p in pairs(game.Players:GetPlayers()) do
wait(2)
script.Game.Value = false
wait(5)
game.Lighting.GameThing:Clone().Parent = p.PlayerGui
wait(20)
p.PlayerGui.GameThing:Remove()
wait()
p.PlayerGui.Progress:Remove()
p.PlayerGui.Spectate:Remove()
wait()
local Map = game.Lighting.Map:clone()
Map.Parent = game.Workspace 
Map:makeJoints()
Players = game.Players:GetChildren()
local Players = game.Players:GetChildren()
for i = 1, #Players do
Players[i].Character:MoveTo(Vector3.new(-5.4, 4.39, -64.7))
script.Game.Value = true
end 
end

0
Thank you so much :) GodOfWar9111 15 — 10y
0
Accepted answer would be great? Tempestatem 884 — 10y
0
Sure, However, i have put it into my game, and it will not "execute" i guess you could say, nothing happens. Ill still Accept it however just because you helped me. GodOfWar9111 15 — 10y
Ad

Answer this question