Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my CollisionGroup not work on the first person in a server?

Asked by
Joshument 110
6 years ago

This is supposed to be a door for a gamepass (lounge). If a player owns the gamepass, they will be able to go through unless they are the first person to join. They can't walk through the wall.

01local gamepassid1 = 5645201 --replace 0 with your gamepass id--
02local gamepassid2 = 5645200 --replace 0 with your gamepass id--
03 
04--Script--
05 
06local part = script.Parent
07local PhysicsService = game:GetService("PhysicsService")
08local MarketplaceService = game:GetService("MarketplaceService")
09 
10PhysicsService:CreateCollisionGroup("GamepassHolders")
11PhysicsService:CollisionGroupSetCollidable("GamepassHolders", "GamepassHolders", false)
12 
13PhysicsService:SetPartCollisionGroup(part, "GamepassHolders")
14 
15game.Players.PlayerAdded:Connect(function(player)
View all 26 lines...
0
Did you make this script or get it from the toolbox? User#16405 0 — 6y
0
I made it Joshument 110 — 6y
0
100% sure he made it judging by his scripting abilities. Mr_Pure 129 — 6y
0
Either of you able to answer this? Joshument 110 — 6y

Answer this question