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

Why won't it open when I have access to the door?

Asked by
Comqts 6
4 years ago
01game.Workspace.ElevatorAccess.Touched:Connect(function(hit)
02    local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
03    local Group = 5762728
04    local Rank = game.ReplicatedStorage.Rank
05    local gamepass = 0
06    local MS = game:GetService("MarketplaceService")
07    if hit and hit.Parent and game.Players:FindFirstChild(hit.Parent.Name)then
08        if game.Players[hit.Parent.Name]:IsInGroup(Group) and game.Players[hit.Parent.Name]:GetRankInGroup(Group) >= Rank then
09            local Ui = game.Workspace.ElevatorAccess.ScreenGui
10            local Ui2 = Ui:Clone()
11            Ui2.Name = "TP"
12            Ui2.Parent = plr.PlayerGui
13        elseif MS:UserOwnsGamePassAsync(plr.UserId, gamepass) then
14            local Ui = game.Workspace.ElevatorAccess.ScreenGui
15            local Ui2 = Ui:Clone()
View all 25 lines...

It's in Starter Player Scripts as I want it local for the player.

0
Please clarify. Do you have any errors? Do you have a video of you touching the door? For more information see https://idownvotedbecau.se/UnclearQuestion User#30567 0 — 4y
0
No errors Comqts 6 — 4y

Answer this question