Player owns game pass

Why it isn’t works?

part.Touched:Connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		local player = game.Players:FindFirstChild(hit.Parent.Name)
		player.playerstats.BankRob.Value = true
	end
end)

if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserID, GamepassID) then -- this line don't works

image

UserId not UserID, case sensitivity

1 Like

Sorry what? I don’t understand you. Can you make it in script?

player.UserId, not player.UserID, the d shouldn’t be capital, it’s case sensitive