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: Why won't this work in game?

Previous Thread :: Next Thread 
NotPix is not online. NotPix
Joined: 27 Nov 2008
Total Posts: 259
15 Nov 2013 11:40 PM
function isAdmin(name)
for i = 1,# admins do
if string.lower(name) == string.lower(admins[i]) or GPS:PlayerHasPass(name, AdminID) then
return true
end
end
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Nov 2013 11:42 PM
because nothing is calling isAdmin
admins is nil
GPS is nil, AdminID is nil
Report Abuse
REM25 is online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
15 Nov 2013 11:42 PM
for i = 1, #admins do

try that and also only 2 ends I think...
Report Abuse
REM25 is online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
15 Nov 2013 11:43 PM
oh right how did I miss that XD dayumm cnt! lol
Report Abuse
NotPix is not online. NotPix
Joined: 27 Nov 2008
Total Posts: 259
15 Nov 2013 11:48 PM
its just a piece of a my chat script, when i try to add the or GPS, it breaks it, and they do have spots within the script
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
15 Nov 2013 11:51 PM
Try UserHasBadge, I think the PlayerHasPass method is still broken (it was like, 1 month ago)
Report Abuse
NotPix is not online. NotPix
Joined: 27 Nov 2008
Total Posts: 259
16 Nov 2013 12:04 AM
pretty sure it does work lol
Report Abuse
Zexeus is not online. Zexeus
Joined: 11 Oct 2013
Total Posts: 69
16 Nov 2013 12:06 AM
function isAdmin(name)
for i = 1,# admins do
if string.lower(name) == string.lower(admins[i]) or GPS:UserHasBadge(name, AdminID) then
return true
end
end
end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
16 Nov 2013 12:07 AM
make sure gps is game:GetService("BadgeService")
Report Abuse
Zexeus is not online. Zexeus
Joined: 11 Oct 2013
Total Posts: 69
16 Nov 2013 12:07 AM
PlayerHasPass is broken still ;P
Report Abuse
NotPix is not online. NotPix
Joined: 27 Nov 2008
Total Posts: 259
16 Nov 2013 12:11 AM
Alright cool, that's probably my problem then thanks!
Report Abuse
benbailey1990 is not online. benbailey1990
Joined: 03 Feb 2011
Total Posts: 1464
16 Nov 2013 12:18 AM
Playerhaspass is broken :c
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