Hello,
I want to make so when a player joins he will see the gui but i will see it too.
But my script is not working can someone please help?
Script:
local Hi = game:GetService("ReplicatedStorage"):WaitForChild("Hi")
Hi.OnServerEvent:connect(function(plr)
if plr.Name == "XxLavaStoneexX" then
local Name = {"XxLavaStoneexX"}
for i,v in pairs(game.Players:GetChildren()) do
local gui = v.PlayerGui.ScreenGui.Frame.TextLabel:Clone()
gui.Parent = plr.Name.PlayerGui.ScreenGui.Frame
end
end
end)
LocalScript:
local Hi = game:GetService("ReplicatedStorage"):WaitForChild("Hi")
Hi:FireServer()
