I can't make a frame visible

In the script, put mousebutton1click function parameters as player

image

local Button = script.Parent
local Frame =Button.Parent
local TransferButton = Frame.Transfer
local DownFrame = Frame.DownloadFrame

local Occupied = Frame.Parent.Parent.Parent.Parent.Ocupado
local Nickname = Frame.Parent.Parent.Parent.Parent.Nickname

Button.MouseButton1Click:Connect(function(player)
	print(Occupied.Value)
	if Occupied.Value == true then
		if player.Name == Nickname.Value then
			print(player.Name)
			Button.Active = false
			TransferButton.Active = false
			DownFrame.Visible = true
		else
			print("Not showing2")
		end
	else 
		print("not showing1")
	end
end)

Make sense cuz player isnt possible in normal scripts… try using click detectors

The script is located in a imagebutton, I dont think it will work with a clickdetector inside.

The problem is finding the player, We need to find the player some how

The problem could be fixed if it was on a StartedGui with adornee on PC like the other one said but it wouldnt work for multiple PC.

But its entire Parent is in Workspace.

There’s a very low chance to make it function, unless it’s a ScreenGui.

They said it did not work, what we’re trying to do now is get player