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: FilteringEnabled VIP Door doesn't work (PLEASE HELP)

Previous Thread :: Next Thread 
icekiller8002 is not online. icekiller8002
Joined: 22 Jan 2013
Total Posts: 6636
17 Jul 2015 12:10 PM
local plr = game.Players.LocalPlayer
wait(1)
if game:GetService("GamePassService"):PlayerHasPass(plr,271255908) then
local door = game.Workspace:findFirstChild'VIP Door'
if(door~=nil)then
door:Destroy()
end
end

It's a local script in the StarterPack

There's no error

The outcome is that I can still see the door even though I have the gamepass

And yes I do have FilteringEnabled set to true



just your average noobling OTer
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
17 Jul 2015 12:11 PM
FilteringEnabled has nothing to do with this, you just fail horribly at scripting.
Report Abuse
icekiller8002 is not online. icekiller8002
Joined: 22 Jan 2013
Total Posts: 6636
17 Jul 2015 12:12 PM
...

I'm glad I don't have over 2.9K posts and still wearing the default package



just your average noobling OTer
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
17 Jul 2015 12:16 PM
Shut up OP, nQ is a better scripter than you.

Why in hell are you running this from a localscript?


trying to learn to hack on windows is like trying to play football in a body cast
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
17 Jul 2015 12:17 PM
Do you even know what FilteringEnabled is?

I honestly don't think you're good enough to be utilizing it.


trying to learn to hack on windows is like trying to play football in a body cast
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
17 Jul 2015 12:17 PM
Put this in StarterPlayerScripts:

local hasPassFunction = game.ReplicatedStorage:WaitForChild("HasPassRemoteFunction")
local canUseDoor = hasPassFunction:InvokeServer()

if canUseDoor then
workspace:WaitForChild("VIP Door"):Destroy()
end


Serverscript in ServerScriptService:

local hasPassFunction = Instance.new("RemoteFunction")
hasPassFunction.Name = "HasPassRemoteFunction"
hassPassFunction.Parent = game.ReplicatedStorage

local assetId = 271255908

local marketPlaceService = game:GetService("MarketplaceService")

hasPassFunction.OnServerInvoke = function(player)
return marketPlaceService:PlayerOwnsAsset(player, assetId)
end
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
17 Jul 2015 12:19 PM
@Isosta
Go back to LMaD
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
17 Jul 2015 12:19 PM
okay, I see what you're trying to do destroying it on th client, but your script still sucks major ass.


trying to learn to hack on windows is like trying to play football in a body cast
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
17 Jul 2015 12:19 PM
@nQ I don't LMaD numbnuts.

The hats I have were payment from scripting.


trying to learn to hack on windows is like trying to play football in a body cast
Report Abuse
ash877 is not online. ash877
Joined: 18 Feb 2008
Total Posts: 5142
17 Jul 2015 12:29 PM
Isosta what program do you use to render your CG stuff.
Report Abuse
Roblok1 is not online. Roblok1
Joined: 27 Jul 2011
Total Posts: 2019
17 Jul 2015 12:41 PM
Here, let's try to run this in a server script instead of a local script. I guarantee that you will get better results. And also if this is a VIP door, you might want to try and put the script inside of the door itself. I don't know why you would want to run a local script inside of the player rather than running it in a server script instead? Oh well.
Report Abuse
Isosta is not online. Isosta
Joined: 10 May 2015
Total Posts: 14729
17 Jul 2015 01:22 PM
@Ash,

what CG stuff?


trying to learn to hack on windows is like trying to play football in a body cast
Report Abuse
BrickConnector is not online. BrickConnector
Joined: 10 Sep 2011
Total Posts: 3437
17 Jul 2015 01:31 PM
...
Do I seriously have to explain your stupidity.

apple maps: turn into the ditch over there
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