generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: GUI Question

Previous Thread :: Next Thread 
fireflame09225 is not online. fireflame09225
Joined: 04 Jan 2010
Total Posts: 1818
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 is not online. 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
veerstrong is not online. veerstrong
Joined: 23 Jun 2009
Total Posts: 2450
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
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
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
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image