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

How do you position preset mobile buttons like the move button and the jump button?

Asked by 6 years ago

I don't know will this question gets taken down, because I don't know has this already been asked or not. I'm new to this, so please don't go too hard with me.

1 answer

Log in to vote
0
Answered by
wookey12 174
6 years ago
Edited 6 years ago

you can find all of the settings inside of

game.Players.LocalPlayer.PlayerGui.TouchGui
local plr = game.Players.LocalPlayer
local touchgui = plr.PlayerGui:WaitForChild("TouchGui")
local movegui = touchgui.TouchControlFrame.ThumbstickFrame
local jumpgui = touchgui.TouchControlFrame.JumpButton

movegui.Position = UDim2.new(.5,0) --put the position you want the thumbpad to be
jumpgui.Position = UDim2.new(0.5,0) --put the position you want the jumpbutton to be
--MAKE SURE TO PUT THIS "LOCALSCRIPT" IN STARTERPACK!
--remember, .5 is half of the screen.

You're welcome!

Ad

Answer this question