In my last question I asked for help on making a gui which allows you to enter a players name and then give them a gui from replicated storage. The Script worked when I tested it with my username, Though when I went into a test game with another account and entered their username the script didn't give them the gui, it was the same when I tested it on a roblox studio 2 player test server. I need help on making it work on multiple players.
Original Post About The Script: https://scriptinghelpers.org/questions/91987/solved-trying-to-make-a-gui-to-give-a-player-a-gui-from-lighting-anyone-can-help
Fixing it, saw the issue.
Ok, lets try it!
First Step : First of all you need to know how it works the Scripts and the LocalScripts in this case we will use a Script.
Second Step : Second, you need to know how to get the service and where you put the Gui and how we can get to the Gui
Third Step : Enjoy coding!
Lets get into the code!
--[[ After read a comment I saw that is incorrect[My code] so lets fix it! ]] local RS = game:GetService("ReplicatedStorage") local Gui = RS:WaitForChild("ScreenGui") local txtBox = Gui.Frame.TextBox --> Change it to your names local player = game.Players:WaitForChild(txtBox.Text) local playerGui = player:WaitForChild("PlayerGui") local GuiClone = Gui:Clone() GuiClone.Parent = playerGui --> That's all! Thanks for notify me that was incorrect.
I hope my answer already solve your question. c: