When Im using MouseButton1Click its not working, and I have cheeked that the ui object existed and its zInded but it still doesn’t work.
can you show the script please. Thanks, MineGameIdle
local Buttons = game.Players.LocalPlayer.PlayerGui.MainGUI.PhoneMain.Apps.Home.Apps
Buttons.Cash.Button.MouseButton1Click:Connect(function()
print("2")
end)
![Screenshot 2023-01-27 171111|443x294](upload://vNtF6VuRMy7eQQq2V7tayJZI5za.png)
![Screenshot 2023-01-27 171147|439x376](upload://jKpQ6AqdozoxlQ0BUjdenslsi2V.png)
Is there any error in the output window
Nope
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Is it in a server or local script?
localscript
asasasasjjtedgdfgdgdfgdf
Could you send a screenshot of your explorer?
You’re prolly referencing the button wrong. Can we see a screenshot of the UI in the explorer?
Try:
game.Players.LocalPlayer:WaitForChild("PlayerGui").MainGUI.PhoneMain.Apps.Home.Apps
Do you have anything else called “Apps” that might be referenced instead? (Or another path that could be referenced)
Nope
dsfdkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Noaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
What if you try the same thing from a LocalScript inside of Cash.Button
? e.g. script.Parent.MouseButton1Click:Connect(function() print("test") end)
Does that output anything?
Another possible issue might be an invisible item blocking the mouse from being able to click the Cash button.
The thing is, from the same script I have something seing if the have is over it and it works
maybe it is being removed? Thanks, MineGameIdle.
I found the problem, i think its because there is a image label and the z index is higher then the button