server script (in the serverscriptservice) wich should print "hello" if a player who got the gamepass touches it... it doesn't give any error but when i wait for 2 minutes an error apeared in the output menu saying "Internal error while fetching asset type because MarketplaceService:getProductInfo() failed because HTTP 0 (CURL error (curl_easy_perform): Couldn't connect to server (7))"
brick = game.Workspace.brick
service = game:GetService("MarketplaceService")
brick.Touched:Connect(function(part)
local character = part.Parent
if character:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(character)
if service:PlayerOwnsAsset(player,4826058) then
print("hello")
end
end
end)

2 comments
I don't know for sure but I saw on twitter that a lot of people were saying a curl error glitch was back and people showed their outputs saying the same thing. But I wouldn't take my word for it... In the meantime try switching the game.Players and the game.Workspace sections to game:GetService("Players") and game:GetService("Workspace")
ok thanks ^^ but i think its not the only proplem there D"":