xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 05 Jan 2015 03:15 AM |
plr = script.Parent.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function() if game:GetService("GamePassService"):PlayerHasPass(plr, 200715920) then script.Parent.Text = "Yes" script.Parent.Value.Value = "Yes" else script.Parent.Text = "Idk" end end)
The text turns to "Idk", which means the player does NOT have the gamepass. But I am the creator of the gamepass, so I'm pretty sure I should have it ? -.- |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 03:27 AM |
Try this instead. (Game:GetService("GamePassService"):PlayerHasPass(plr,200715920)) |
|
|
| Report Abuse |
|
|
xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
| |
|
|
| 05 Jan 2015 03:33 AM |
| Well if you're testing it in Play Solo you'll be Player1 so it won't work. |
|
|
| Report Abuse |
|
|
xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 05 Jan 2015 03:35 AM |
| I tried in a roblox game server and got the same results |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 03:38 AM |
Could be you're calling the player wrong. I don't think it works like that. Try this.
plr.userID |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 03:39 AM |
plr.userId ***
Must be lowercase d |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 03:40 AM |
| No, playerhaspass takes player as an argument not the userid. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 03:40 AM |
| OP have you tested it in a real server, not Studio's server mode? |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 03:41 AM |
Oh this is the actual question that's important.
Are you in a LocalScript or Script? |
|
|
| Report Abuse |
|
|
xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 05 Jan 2015 03:43 AM |
| local script because it is client side right |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 03:45 AM |
You can't use PlayerAsPass in a LocalScript.
Well you technically *can* but it won't work like you expect it to.
You should use a RemoteFunction. |
|
|
| Report Abuse |
|
|
xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 05 Jan 2015 03:47 AM |
I changed it to a script and it worked
wow |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 03:49 AM |
Yeah but that's really bad practice.
Anyway anything you should make should use FilteringEnabled so you should learn that. |
|
|
| Report Abuse |
|
|
xLink123
|
  |
| Joined: 07 Aug 2014 |
| Total Posts: 11158 |
|
|
| 05 Jan 2015 03:52 AM |
| I'm not sure what filtering enabled is..? |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 03:53 AM |
Most of the top games don't use filtering enabled.
Mad Paintbull The Mad Murderer R2D Isolation COR 5 Apoc Ryse. And many more. |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 03:56 AM |
| Filtering enabled is something you shouldn't really focus on too much. I would continue to make a game without filtering enabled unless your top priority is to stop "Local script hackers" from cheating in your game. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 03:57 AM |
@cala
First of all you don't know which of those games use FE.
Second of all that's stupid logic you've got going.
Third of all it just means those games are, if not using FE, either legacy or poorly developed.
FilteringEnabled prevents all major exploiting, period. Every single game should use it. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 03:59 AM |
(ignore cala he has no clue what he's talking about)
Resources on FE: http://wiki.roblox.com/index.php?title=FilteringEnabled_with_the_Client-Server_Model http://wiki.roblox.com/index.php?title=Security http://wiki.roblox.com/index.php?title=API:Class/Workspace/FilteringEnabled http://wiki.roblox.com/index.php?title=Fighting_Lag |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 04:07 AM |
What so your preference is suddenly what everyone should use? Get a grip kid.
Also, I do actually know, ever heard of twitter? Loleris and others have stated they don't use filtering enabled through twitter.
Filtering enabled can't stop A LOT of hacks. Brick destroying, Brick position changing, BTools Insert.
If you had a game that was on the first page and had 100k views I'd understand your opinion. But you don't. Sooo as far as I'm concerned, you're just being a big headed idiot who wants everything his way. |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 04:08 AM |
| P.S, Almost every hack that FE can prevent. With the right script. Can be prevented without FE aswell. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 04:11 AM |
While everything you say is evident you know nothing at all about scripting, let me explain just how big of an idiot you are very quickly before I go to bed.
" What so your preference is suddenly what everyone should use? Get a grip kid."
It isn't preference. You have no clue what FilteringEnabled is, do you?
"Also, I do actually know, ever heard of twitter? Loleris and others have stated they don't use filtering enabled through twitter."
I don't get what makes you think loleris is some sort of fantastic elite developer. Yeah, he's capable. Is everything he does / says right, certainly not.
"Filtering enabled can't stop A LOT of hacks. Brick destroying, Brick position changing, BTools Insert."
Thank you for proving you don't know what FilteringEnabled is at all or what it does.
"If you had a game that was on the first page and had 100k views I'd understand your opinion. But you don't. Sooo as far as I'm concerned, you're just being a big headed idiot who wants everything his way."
Please shut up, your stupidity is killing me. |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 04:20 AM |
You say all this but you don't have a game on the first page? You're not creditable for anything. Loleris has 2 games on the front page, he's certainly better, and superior to you in every form scripting.
Also, I now a LOT more about scripting than you do. Just because I don't use filtering enabled doesn't change that what so ever does it idiot. Considering Filtering Enabled is a bool you need to change in workspace? You must be AMAZING!
"Thank you for proving you don't know what FilteringEnabled is at all or what it does." Sorry, I should of said Filtering Enabled can't stop A LOT of exploits. All you're confirming is you're the idiot here that has no idea what he's talking about and not me.
Stop being so arrogant and get some friends you insecure loser. :) |
|
|
| Report Abuse |
|
|
cala13er
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 191 |
|
|
| 05 Jan 2015 04:21 AM |
| PS. About the Bool thing. I'm not going to go in depth about filtering enabled because there's too much to talk about. But as I said. It's a bool, that changes how the servers work. |
|
|
| Report Abuse |
|
|
|
| 05 Jan 2015 04:26 AM |
"You say all this but you don't have a game on the first page? " Two points on this: 1. I actually have had multiple games on the front page though it's irrelevant. 2. What does having a game on the front page have to do with scripting?
"Loleris has 2 games on the front page, he's certainly better, and superior to you in every form scripting."
Regardless of whether he is or not- you wouldn't know because you've seen code from no one. I'm not sure how stupid you are, but being on the front page doesn't automatically make you good.
"Also, I now a LOT more about scripting than you do"
No you don't, but that's irrelevant.
"Just because I don't use filtering enabled doesn't change that what so ever does it idiot. Considering Filtering Enabled is a bool you need to change in workspace? You must be AMAZING!"
What the hell are you even talking about? Yes, FilteringEnabled is a property of Workspace, do you want a cookie? You have no understanding of what it does.
"Sorry, I should of said Filtering Enabled can't stop A LOT of exploits." It's laughable how you couldn't distinguish and still can't which exploits FE can prevent and which it can't.
"All you're confirming is you're the idiot here that has no idea what he's talking about and not me."
...But I'm the one who actually knows what FE is...?
" I'm not going to go in depth about filtering enabled because there's too much to talk about. But as I said. It's a bool, that changes how the servers work. "
LOL you don't know what it does do you? "It's a bool" yeahhhh you're stupid. |
|
|
| Report Abuse |
|
|