|
| 04 Apr 2013 04:17 PM |
Hello.
So, I was wondering how to make a GUI appear for only one person, not the entire server, and only when the player enters.
For example, the GUI that appears when you start up Apocalypse Rising. It only appears when you first enter, and for that person only.
Thanks. |
|
|
| Report Abuse |
|
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 04 Apr 2013 04:19 PM |
game.Players.PlayerAdded:connect(function(player) wait() c = Workspace.GUINAMEHERE:Clone() --put your GUI in workspace c.Parent = player.PlayerGui end) |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 04:20 PM |
peopleWhoCanSee = {"name"}
game.Players.PlayerAdded:connect(function(p) for _,v in pairs(peopleWhoCanSee) do if p.Name:lower() == v.Name:lower() then print("Allowed") else script.Parent:Remove() end end end)
Put that directly in the GUI.
~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~ |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 04:38 PM |
function onTouched(player) local a = game.Players:GetPlayerFromCharacter(player.Parent) local b = Instance.new("ScreenGui",a.PlayerGui).Name = "GUI" local c = Instance.new("TextButton",a.PlayerGui.GUI).Name = "CHILD" --content like size goes under here --depending on the content, find out how many ends go at the bottom end script.Parent.Touched:connect(onTouched)
This script makes it so when you touch a brick, a GUI shows up for only the person who touched it. I didn't test it, but it should work.
~stephen1182 |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 04:40 PM |
Oh sorry, I didn't read the whole thing. Add a VIP door script in the part, non-killing, CanCollide false, Transparency 0, so only the person who is allowed to see the GUI, when they enter the game, they touch the brick, and see the GUI.
~stephen1182 |
|
|
| Report Abuse |
|
|