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: Vip door script

Previous Thread :: Next Thread 
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 07:05 AM
Needing help so I can make a vip area

thanks


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 07:11 AM
wot do we get out of it
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 07:12 AM
my attention


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 07:14 AM
why would anyone want that
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 07:15 AM
ok what would you like?


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 07:16 AM
food
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 07:18 AM
ok

*feeds food to LaeMVP*


former atrer
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 07:29 AM
help please


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 07:35 AM
local PassId
local Door = script.Parent
local PS = game:GetService("PhysicsService")
PS:CreateCollisionGroup("VIPPlayers")
PS:CreateCollisionGroup("Door")
PS:CollisionGroupSetCollidable("VIPPlayers","Door",false)
PS:SetPartCollisionGroup(Door,"Door")
local CGS = {}
game.Players.PlayerAdded:Connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,PassId) then
plr.CharacterAdded:Connect(function(char)
local function SetCollisionGroup(Object)
for i,v in pairs(char:GetChildren()) do
if v:IsA("BasePart") then
CGS[v] = v.CollisionGroupId
game:GetService("PhysicsService"):SetPartCollisionGroup(v,"VIPPlayers")
end
end
end
SetCollisionGroup()
char.DescendantAdded:Connect(SetCollisionGroup)
end)
end
end)
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 07:36 AM
my food now pls
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 07:36 AM
thanks dude


former atrer
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 07:38 AM
*gives food to laeMVP*

is this good


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 07:39 AM
ty
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 08:04 AM
it doesnt seem to work for me, do i need to add anything else?
local PassId = 942958061
local Door = script.Parent
local PS = game:GetService("PhysicsService")
PS:CreateCollisionGroup("VIPPlayers")
PS:CreateCollisionGroup("Door")
PS:CollisionGroupSetCollidable("VIPPlayers","Door",false)
PS:SetPartCollisionGroup(Door,"Door")
local CGS = {}
game.Players.PlayerAdded:Connect(function(plr)
if game:GetService("MarketplaceService"):PlayerOwnsAsset(plr,PassId) then
plr.CharacterAdded:Connect(function(char)
local function SetCollisionGroup(Object)
for i,v in pairs(char:GetChildren()) do
if v:IsA("BasePart") then
CGS[v] = v.CollisionGroupId
game:GetService("PhysicsService"):SetPartCollisionGroup(v,"VIPPlayers")
end
end
end
SetCollisionGroup()
char.DescendantAdded:Connect(SetCollisionGroup)
end)
end
end)

or if you can, make me a model? after all i gave you the food


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 08:09 AM
just put that in a script in the door part
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 08:10 AM
i put it in a script inside of a part I want them to walk through, it still doesn't work


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 08:11 AM
it worked for me
Report Abuse
Alcaras is not online. Alcaras
Joined: 21 Oct 2014
Total Posts: 1586
28 Jul 2017 08:27 AM
laemvp, sent a FR.

got a paid project for you if you want


stay frosty
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 08:28 AM
Could you make it a model so I can take it?


former atrer
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
28 Jul 2017 09:01 AM
https://www.roblox.com/library/944627683/feed-ples
Report Abuse
chloeb1 is not online. chloeb1
Joined: 28 Sep 2012
Total Posts: 2460
28 Jul 2017 09:03 AM
thanks


former atrer
Report Abuse
ForceCyber is not online. ForceCyber
Joined: 06 May 2015
Total Posts: 1086
28 Jul 2017 09:24 AM
VipID = 232311; deb = false; script.Parent.Touched:connect(function(hit); if hit.Parent then if not deb then deb == true local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, VipID) then script.Parent.Transparency = ### #################### ########################## = 0 -- edit self deb = false end end end end end) -- should work.
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