How to check if a Player has let go of a Mobile Button?

Hey there,

i’ve made and defined this Mobile button which Fires a Remote event and sends a string when pressed however i need it to also Send another string when they let go of the Button, How would i check for this?, is there a simple way

Script:

function ButtonPress() – Mobile

replicatedStorage.Sprint:FireServer(“Began”)

end

local mobilebutton = contextaction:BindAction(“Sprint”,ButtonPress,true)

contextaction:SetPosition(“Sprint”,UDim2.new(0.72,-80,0.30,-35)) – ZXY

contextaction:SetTitle(“Sprint”,“Sprint”)

Thanks,

1 Like

I’m fairly certain that GUI works the same way regardless if it’s mobile or PC. So MouseButton1Up should work just fine?

1 Like

I’m pretty new to scripting so idk where id implement that into the code, Plus this gui is only visible on Mobile?

They give examples of how to use it in the link. Read up on Functions and Events if you need to