I have 2 frames, the 2 frames are called “Character1” and “Character2”. Somehow, the Character1’s text button is not being detected whenever it is clicked, but the Character2’s text button is being detected when it is clicked
I have added a print() function when the text button is clicked whenever it is clicked, and it did not print anything.
I’ve made a loop function, deleted the other code shown above (including the character2’s code), same issue, character1’s text button does not work while character2’s text button does
for i, v in pairs(Gui.CharacterSaves:GetChildren()) do
if v:IsA("Frame") then
v.LoadChar.MouseButton1Down:Connect(function()
if v.LoadChar.Text == "Load Character" then
LoadChar(v.Slot.Value, "Load")
else
LoadChar(v.Slot.Value, "Create")
end
end)
end
end
I’ve also made a server script inside the gui and made it print the character1’s name, which does print the frame’s name
script.Parent.CharacterSaves.Character1.Name
I’m very confused, and have no idea why this is happening
Are they perhaps overlapping each other? Like on button is behind the other? Might want to check that if they are, if not I would like a pic of that the buttons look like in game.