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

Group/Gamepass Seat not working? [closed]

Asked by
54013 -2
6 years ago
Edited 6 years ago

So I am a developer for this British group and since I know a little bit of coding I was asked to fix up this gamepass script for a horse that works for HR's and the cavalry regiment without them needing to buy the gamepass. This is what I have now:

local PassID = 4433975 local player:GetRankInGroup(3977710) >=17 local player:IsInGroup(4100024)

local seat = script.Parent function auth(plr) return game:GetService("GamePassService"):PlayerHasPass(plr, PassID) elseif player:GetRankInGroup(3977710) >=17 elseif player:IsInGroup(4100024) end function OnTouched(hit) if hit and hit.Parent:FindFirstChild("Humanoid") then if auth(game.Players:GetPlayerFromCharacter(hit.Parent)) then seat.Transparency 0 else hit.Parent.Health = 0 end end end seat.Touched:connect(OnTouched)

But for whatever reason it won't work. Any help would be appreciated, thank you.

0
Use a code block for your script User#20388 0 — 6y
0
There's quite a bit wrong here... TheeDeathCaster 2368 — 6y

Closed as Not Constructive by hellmatic, DeceptiveCaster, brokenVectors, Axceed_Xlr, and User#20388

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?