This script should be working, I did everything as intended, but as soon as I tested it, it broke; it now says that it's Unable to cast value to Object
Here's where it errors out:
script.Parent.Process.MouseButton1Click:Connect(function()
local id = script.Parent.Input.Text
if game:GetService("MarketplaceService"):PlayerOwnsAsset(117099978, id) then
local insert = game:GetService("InsertService"):LoadAsset(id)

9 comments
wait no i suppose input is an int value right? youre supposed to do script.Parent.Input.Value
Oh
I'm an idiot lol-
I'll update my question, it's doing something different
What line is it saying it?
3
You did "PlayerOwnsAsset(game.Players.Ap_inity,assetId)" ?
yeah, ^ the 1st argument should be the instance of the player, not the user id. please put [solved] in the title if it works :)
I already did this a while ago, it still errored out.