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

Gamepass/Group seat help please?

Asked by
54013 -2
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
There is a scripting block here, please put your code inside one :) User#20388 0 — 6y

Answer this question