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: To make this a nil statement...

Previous Thread :: Next Thread 
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
06 Mar 2013 12:28 PM
...script stuff here
if GamePassService:PlayerHasPass(player, GamePassIdObject.Value) then
...script here
else if
if GamePassService:---PlayerHasPass---(player, GamePassIdObject.Value) then
...script part here
end

(look for dashes)

Would I say ":PlayerDoesntHavePass"?

What would I change that to to make it say if they DO NOT have the pass, it executes the script?

Or would I change the else if statement to something else?
Report Abuse
qwerty1806 is not online. qwerty1806
Joined: 20 Sep 2008
Total Posts: 737
06 Mar 2013 01:04 PM
(Using simple code, this will error if you copy it exactly.)

if HASPASS then
--Nothing
else
-- Things
end
Report Abuse
Xnite515 is not online. Xnite515
Joined: 18 Feb 2011
Total Posts: 22763
06 Mar 2013 01:12 PM
elseif not
if not
Report Abuse
tyleralex123 is not online. tyleralex123
Joined: 01 Apr 2009
Total Posts: 19934
06 Mar 2013 01:37 PM
so it would be

function onNewPlayer(p)
p.CharacterAdded:connect(function()
if GamePassService:PlayerHasPass(player, GamePassIdObject.Value) then
...stuff here

else

...stuff here


then end

correct?
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