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

This script has no errors in the code and it wont do anything?

i have this script that is in workspace and its a normal script there is nothing wrong with it but it just doesn't do anything

players= game.Players:GetChildren()
for i = 1, #players do
	script.GameOverScreen:Clone().Parent = players[i].PlayerGui
end

5 comments

1

is your script disabled

0

^

0

nope

0

is your screengui enabled

0

yes there is absolutely nothing wrong and my script works in my other games

1 answer

for i,v in pairs(game.Players:GetChildren()) do
       local GUI = game.ReplicatedStorage:WaitForChild("ADD_SCREENGUI_NAME")
       if GUI then
            GUI:Clone().Parent = v.PlayerGui
      end
end

4 comments

0

still doesnt work

0

What are the script gonne do?

0

its pretty self explanatory

0

But the "ScreenGui" inside of the ReplicatedStorage.

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