Please help it says
(I did it in a script so nothing happens to it)
GamePassId '20584484' is not of type Game Pass. Please use MarketplaceService:PlayerOwnsAsset instead.
This is my Script:
local PassID = 20584484
local seat = script.Parent
function auth(plr)
return game:GetService("GamePassService"):PlayerHasPass(plr, PassID)
end
function OnTouched(hit)
if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then
if auth(game.Players:GetPlayerFromCharacter(hit.Parent)) then
seat.Transparency = 0
else hit.Parent.Humanoid.Health = 0
script.SeatKickGui.Frame:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), Enum.EasingDirection.In, Enum.EasingStyle.Quad)
end end end
seat.Touched:connect(OnTouched)
And I triple checked my pass and it's type and it says "Pass"

1 comment
Help!