This button should print ("Clicked") when clicked. However, I can't seem to access any of the gui although it's adornee is set properly.
The code all works properly but the surfacegui button still can't be accessed. Thanks in advance for any help.
The adornee is set to a part and the surfacegui is in the players gui.
function ActivateInventory()
player.PlayerGui.MouseFollowLocal.Disabled = true
local UIStorage = game.ReplicatedStorage.LocalPlayerResources.UIStorage
local B1 = UIStorage.MainInven:Clone()
local B2 = UIStorage.Equipment:Clone()
local B3 = UIStorage.ExtraInterface:Clone()
B1.Parent = player.PlayerGui
B2.Parent = player.PlayerGui
B3.Parent = player.PlayerGui
B1.Adornee = player.Character.PlayerEquipment.StandardPersonalInterface.Interface1
B2.Adornee = player.Character.PlayerEquipment.StandardPersonalInterface.Interface2
B3.Adornee = player.Character.PlayerEquipment.StandardPersonalInterface.Interface3
playAnimation(OpenInven)
wait(0.7)
playAnimation(OpenInven2)
--Button:TweenSize(UDim2.new(0, 180, 0, 180), "Out", "Quad", 0.5)
end
Heres the script inside the button
local Button = script.Parent
local player = game:GetService('Players').LocalPlayer
local mouse = player:GetMouse()
Button.MouseEnter:connect(function(mouse)
Button:TweenSize(UDim2.new(0, 180, 0, 180), "Out", "Quad", 0.5)
Button.MouseLeave:connect(function(mouse)
Button:TweenSize(UDim2.new(0, 150, 0, 150), "In", "Quad", 0.5)
end)
end)
script.Parent.MouseButton1Click:connect(function()
print("Clicked!")
end)

2 comments
Are you calling the Inventory function?
Yes I am calling the inventory function. Every bit of code works without error, and the GUI's appear on the parts they should. I just can't interact with them.