I don't really understand what you mean in the last paragraph, but make sure you include the output. Players is a nil value because you don't define it anywhere, so there will be something in the output. Try this:
while wait() do
local TF = game.ReplicatedStorage["GUI_Drive"].TopFrame:Clone()
TF.Parent = game.StarterGui
local Players = game.Players:GetPlayers()
for i = 1, #Players do
TF.Parent = Players[i].PlayerGui
end
end
But this still will only give one player the GUI, since you only clone it once. You have to clone it for each and every player.
while wait() do
local TF = game.ReplicatedStorage["GUI_Drive"].TopFrame:Clone()
TF.Parent = game.StarterGui
local Players = game.Players:GetPlayers()
for i = 1, #Players do
local gui = game.ReplicatedStorage["GUI_Drive"].TopFrame:Clone()
gui.Parent = Players[i]:WaitForChild("PlayerGui")
end
end
2 comments
Thanks,And what i meant is that it only runs ONCE in the loop,Per loop.
Read it now