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 » Scripters
Home Search
 

Re: object removed for everyone but whitelist?

Previous Thread :: Next Thread 
retracee is not online. retracee
Joined: 27 Apr 2013
Total Posts: 854
02 Dec 2017 07:40 PM
I'm a newbie to scripting in roblox I just started 30 minutes ago.


I'm making a GUI only available to my friends and I and I know how to make a script for certain players but not everyone but me

if game.Players.retracee then
script.Parent:Remove()
end

How would I make it for all other players besides the few players on my whitelist?
Report Abuse
Retronical is not online. Retronical
Joined: 23 Jan 2016
Total Posts: 15
02 Dec 2017 07:43 PM
ok
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
02 Dec 2017 07:47 PM
local weebs = {[yourUserId] = true}

script.Parent.Visible = not not weebs[localPlayer.UserId]

pseudo code

also not not because nil to false
Report Abuse
retracee is not online. retracee
Joined: 27 Apr 2013
Total Posts: 854
02 Dec 2017 08:02 PM
thanks 🅱️OI
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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