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.