I’m trying to make it so this GUI button (child of a surface GUI) is able to be clicked, however my script works but I noticed that I can only click the button from a very specific camera angle.
Any other position like looking at it this way does nothing.
I’ve tried adjusting all kinds of properties and referred to a dev forum post with a similar problem but their solve doesn’t fix mine.
I just saw that the TextLabel instance had an option to be expanded, I assumed you had placed the script there. Could you share the contents of the script here?
for ci , cv in pairs(v2) do
local c = cm.UIHOLDER.ui.ScrollingFrame.storage.LI:Clone()
c.Visible = true
c.Text = ci
c.Parent = cm.UIHOLDER.ui.ScrollingFrame
--create click
c.MouseButton1Click:Connect(function()
--Load Item
print("Clicked")
local model = Instance.new("Model", cm.placement.parts)
model.Name = ci
for ii, vv in pairs(v2[model.Name]["instance"]) do
print( type(vv))
local ccc = vv
ccc.Parent = model
end
model:MoveTo(cm.placement.Position)
end)
--a fragment of the script