Hey ive been working on a silly game to waste time but not i kinda got devoted to it. i made it for mobile and pc but the thing for mobile is that the joystick and jump button is a huge eye soar
is there a way i can disable it or make them invisible i dont know if its possible but i heard about it with the top bar thing
thank you but im having trouble figuring out how to set it up
i’m pretty sure all you have to do is make a local script in startergui and put in
local UserInputService = game:GetService("UserInputService")
UserInputService.ModalEnabled = false
oh then im just being a clown putting it in startperplayerscripts
sorry but i updated my game and tested it on mobile and doesnt seem to be working
try setting the boolean to true…?
boolean?
im to tired lol but what is boolean?
it’s basically true/false (this part right here )
likr that correct?
yes, hopefully that should do it
no it still unfortunately doesnt work
i looked around the devforum and found this piece of code. this one should probably do the job.
local PlayerModule = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local Controls = PlayerModule:GetControls()
Controls:Disable()
just replace the code in the localscript you made with this.
yes it worked now all i need to try and do is disable the jump button
shouldn’t be too hard to do, just make the jumppower to 0 and you should be good to go
and the little circle button gui goes away?
actually, don’t do that. go to starterplayer and disable this in the properties
but is there also an option to disable the button completely?
like make it not visible for mobile again?
figured out how to. add this code to the localscript.
repeat wait() until player.PlayerGui:FindFirstChild("TouchGui") and player.PlayerGui.TouchGui.TouchControlFrame:FindFirstChild("JumpButton")
player.PlayerGui.TouchGui.TouchControlFrame:FindFirstChild("JumpButton").ImageTransparency = 1
what i did was just wait for the gui for mobile to show up and then make the jump button in it transparent.
wait so id tap the jump button and it would disappear? or is it completely invisible?