I try to click a button in a gui, The Z index of the button is 4 And the gui display order is 1
local event = game.ReplicatedStorage.Events:WaitForChild("UpgardeEvent", 100)
script.Parent.MouseButton1Click:Connect(function()
local player = script.Parent.Parent.Parent.Parent
print("A")
local stat = script.Parent.Text
local value = script.Parent.Parent.TextBox.Text
print(player)
event:FireServer(player, stat, value)
end)
Here is how the order goes
Gui |_Frame (Z-Index 3) |_Button That does not work (Z-Index 4) |_Local Script
I Get no errors

1 comment
ok, thank you. but that was't the problem i found a fix but thanks for answering!