Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can i make custom mobile buttom ?

Asked by
Tusi_1 17
4 years ago

I maked a game where i need custome mobile button for interactive things ! Or i dont have idea how i can make ! I want use that button what is i use in pc version ! What i need change :

local Context = game:GetService("ContextActionService")
local Int = workspace.Hozaerve

function onButtonPress ()
    Int.Value = true
end

local mobilebutton = Context:BindAction("Interactive",onButtonPress,true,"I")
Context:SetPosition("Interactive",UDim2.new(0.75, 0,0.395, 0))

0
the : local Int = workspace.Hozaerve is just BoolValue . This is button script the another interactive things is another script Tusi_1 17 — 4y
0
Actually, ImageButton and TextButton have events for mobile user input. For example, TouchTap https://developer.roblox.com/api-reference/event/GuiObject/TouchTap Block_manvn 395 — 4y
0
So you don't need to make custom button for mobile user. Maybe that is what you need if I get it right... Block_manvn 395 — 4y
0
YEPP !!!! THX DUDE !!!! Tusi_1 17 — 4y

Answer this question