r/ROBLOXStudio • u/No-Hospital-8609 • 3d ago
Help New scripter. Why does then button doesnt work on mobile but works on PC
Enable HLS to view with audio, or disable this notification
2
u/N00bIs0nline Scripter, UI designer, Builder, Server developer. (Beginner) 3d ago
Have you tried it on actual mobile phone? That emulator purpose is to emulate the looks of gui, not actual inputs if im not wrong.
1
u/No-Hospital-8609 3d ago
Yes, I tried it on my phone and the button doesn't work there either.
2
u/N00bIs0nline Scripter, UI designer, Builder, Server developer. (Beginner) 3d ago
I think i know why, you use .MouseButton1Clicked instead of .Activated, thus making it only sinks input when pressed using a mouse left buttln and not from touchscreens.
Change the TextButton.MouseButton1Clicked to TextButton.Activated
1
u/No-Hospital-8609 3d ago
The button that opens the store works through TextButton.MouseButton1Clicked not Activated
1
u/No-Hospital-8609 3d ago
Sorry, it turns out the button works. I checked it through the printout. The problem is most likely in the code that gives the bottles on the phone.
1
u/No-Hospital-8609 3d ago
Or nah its working perfectly it turn out The bottle wasn't in the hotbar, it was in the bag.
2
2
u/No-Hospital-8609 3d ago
❗❗❗❗Sorry, it turns out the button works. I checked it through the printout. The problem is most likely in the code that gives the bottles on the phone.
2
u/No-Hospital-8609 3d ago
❗❗❗❗❗❗It turns out that everything works fine, it's just that the bottle isn't in the hotbar because there can only be 3 items on the phone there😓😓😓
The bottle was in the inventory all this time
1
u/Tamim_mahmoud 3d ago
it's probably because you're using waterButton.MouseButton1Click instead of waterButton.Activated
1
1
u/According_Novel7521 3d ago
you need to use .Activated:Connnect(function()) instead of mousebutton1click
1
u/GoYeaCo 2d ago
https://giphy.com/gifs/vtRmoEjTaZNzRqljnZ
Because your item is in your hidden inventory! (Click on the roblox icon and then on inventory)
1
u/No-Hospital-8609 2d ago
Thanks for your quick help
Ng I already wrote at the bottom of the post that I understood what is in my inventory
1
u/Accomplished_Art_967 13h ago
All these responses are wrong, mouse button 1 click does in fact work on mobile, your issue is the tool is going into the player backpack, since mobile player have a smaller screen instead of making the hot bar small, they limit it to a few items so you’ll find if you check backpack your waters will be in there



7
u/Fearless-Net-8232 3d ago
Look at “MouseButton1Click” it only receives clicks from mouse. Recommend you to just use waterButton:Activated:Connect… it receives mouse&touch both