What do i want?, change the position of the moblie jump button
What is the problem?, the mobile jump button is covering some GUI’s
What have i tried so far?, Nothing, IDK what to do😒
What do i want?, change the position of the moblie jump button
What is the problem?, the mobile jump button is covering some GUI’s
What have i tried so far?, Nothing, IDK what to do😒
Inside a local script, in ScreenGui, or anywhere that your local script will run.
local Player = game:GetService('Players').LocalPlayer
if Player:WaitForChild('PlayerGui'):FindFirstChild('TouchGui') then
Player.PlayerGui.TouchGui.TouchControlFrame.JumpButton:Destroy()
end
He does not want to get rid of it. He wants to position it away from the uis.
Maybe you could remove the mobile jump button then create a new one with ContextActionService
Yeah, good idea i can copy that button from the core UI so its gonna look the same
This script removes the button, but you can change Destroy() to Position = Udim2.FromScale(NewPosition)
Final script:
repeat wait() until game:IsLoaded()
local Player = game.Players.LocalPlayer
if Player:WaitForChild("PlayerGui"):FindFirstChild('TouchGui') then
Player.PlayerGui.TouchGui.TouchControlFrame.JumpButton.Position = UDim2.fromScale(0.85, 0.65)--or whatever position you want
end
i did’nt know there was a acutual TouchUI thing in the PlayerGui so thanks @Entildo