How to fix this/trace down

So i want to know the location of the icon/the gui/the guy
and i did that by printing its parent, guess what?

Its not there look at my script:

Cat.OnServerEvent:Connect(function(player)
	local hasGamePass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, catId)

	if not hasGamePass then
		local success, error = pcall(function()
			MarketplaceService:PromptGamePassPurchase(player, catId)
		end)

		if not success then
			warn("Failed to prompt GamePass purchase:", error)
		end
	else
		local copy = CatIcon:Clone()
	    copy.Parent = player.PlayerGui.MainScreen.Main
		copy.Position = UDim2.new(0.533, 0,0.883, 0)
		
		while wait(1) do
			print(copy.Parent)
			print(copy.Parent.Parent)
			print(copy.Parent.Parent.Parent)
		end
	end
end)

look at the printing:

print(copy.Parent)
			print(copy.Parent.Parent)
			print(copy.Parent.Parent.Parent)

the printing is not the problem, well it is, sort of look:


when i look:
image

where the hell is it?

if you have any ideas as to why its doing this pls let me know.

are you making a casino using gamepasses???

well you’re looking in StarterGui
players have their own PlayerGui so you should be looking there instead
image

no, ofcourse not, maybe try out my game dude, this has nothing to do with the thing

	    copy.Parent = player.PlayerGui.MainScreen.Main

line 36

ofcourse im always victim of some magical impossible weird ass bug or something that doesnt exist or no one knows how to solve

try reading my first post again

How is it starter gui? I put player.Playergui

oh wait i think i got it

read it slowly again
i said you’re looking in StarterGui
look in your PlayerGui instead

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.