What do you want to achieve? I want this script to print a certain phrase however it does not seem to work on mobile for whatever reason.
What is the issue? Mobile users can’t interact with the textbutton but they can with other on the screen.
What solutions have you tried so far? Tried InputBegan and didn’t work either.
The reason it’s in playergui because when a mobile player equips it’s parented to PlayerGui and later parents back to “script” when unequipped.
local gui = Player.PlayerGui:WaitForChild("Mobile"):WaitForChild("StompButton")
if gui then
print(gui)
gui.MouseButton1Click:Connect(function()
print("DF1")
if Downed.Value == false then
print("DF2")
end
end)
else return
end```