Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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 

2 comments

0

If it is the main script and not a "LocalScript", then why are you using LocalPlayer?

0

How would if fix it? Im aware of the Issue now though thanks.

1 answer

✓ Accepted answer
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

3 comments

0

Thank you so much :)

0

Accepted answer would be great?

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.