Hello. I wanted to ask if someone has a script for me that loads a gui if the player's name is in the script. Like when In teh sxript stands ILikeChickenWings and the player joins then the Script loads a gui for him that is ín ServerStorage but no one else can see the gui. I hope someone can help me thanks.
COMMUNITY QUESTION
How do I make a script that loads a gui when the name of the player is in the script?
1 answer
Your post didn't make a lot of sense, so I'm guessing here..
game.Players.PlayerAdded:Connect(function(player)
if player.Name == "ILikeChickenWings" then
game.ServerStorage.GUI:Clone().Parent = player.PlayerGui
end
end)
This script checks if the player has the name "ILikeChickenWings", and if it is, then it clones the gui into the player's PlayerGui.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
this is not allowed, asking for scripts is not what this site is for, its to help people learn how to program using lua not ask for done scripts