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

Unable to cast Instance to int64 What does that mean? [closed]

Asked by 5 years ago
local id = 5429801

game.Players.PlayerAdded:Connect(function(player)
    if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player, id) then 
        print(player.Name .. " has the game pass!")
    else
        print(player.Name .. " doesn't have the game pass...")
    end
end)

I have an error in the output saying this

 19:25:42.103 - Unable to cast Instance to int64
19:25:42.104 - Stack Begin
19:25:42.104 - Script 'ServerScriptService.Script', Line 4
19:25:42.104 - Stack End

I was wondering if someone could tell me how to fix it and why

0
By the way i used the script from the wiki but i have an script that is very long but i wanna see people's answers with small script XxGamerSporkXx_YT 1 — 5y

Locked by User#19524

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 5 years ago

nvm i fixed it thanks everyone tho

0
Put a [Solved] in the title fr2013 88 — 5y
Ad