of     1   

Yutube_SB101
#228247616Thursday, November 30, 2017 2:26 AM GMT

Hello, Im new to scripting so please dont hate on me. I looked throught the wiki and tried to piece together a script for a door that when the player tries to walk through allows them to if they have the gamepass to enter that part of the game. Will this script to work?? and again please dont hate im still very new to scripting. door.Touched:connect(function(part) local player = get_player(part) if not player then return end local passId = --my pass id-- function isAuthenticated(player) return game:GetService("GamePassService") :PlayerHasPass(player, passId) end game.Players.PlayerAdded:connect(function(plr) if isAuthenticated(plr) then game.workspace.--doorname--.CanCollide = false wait(5) game.workspace.--doorname--.CanCollide = true end end end)

    of     1