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
 

Why does this not work?

Previous Thread :: Next Thread 
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
19 Mar 2014 03:48 PM
Can someone please fix this for me? I have NO idea why this does not work- when i -- it out it does work fine, just the if statement for some reason does not. Please tell me what is wrong

plr = game.Players.LocalPlayer
ID = 150151110
votevalue = 1
GPS = Game:GetService("GamePassService")
if GPS:PlayerHasPass(plr,ID) then votevalue = 2 end
Report Abuse
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
19 Mar 2014 05:39 PM
bump
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
19 Mar 2014 05:42 PM
PlayerHasPass can only be used server-side last time I checked (aka not in a LocalScript).
Report Abuse
Zulsoras is not online. Zulsoras
Joined: 10 Sep 2008
Total Posts: 963
19 Mar 2014 05:47 PM
so what should i use instead?
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