Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a script that loads a gui when the name of the player is in the script? [closed]

Asked by 4 years ago

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.

1
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 Gameplayer365247v2 1055 — 4y

Closed as Not Constructive by Gameplayer365247v2, Nowaha, RetroGalacticGamer, and Elixcore

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
rexhawk 222 Moderation Voter
4 years ago
Edited 4 years ago

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.

Ad