Dunno if you uhh figured it out already but the actual text button has to be set as visible. Just make the text invisible as well as the background. Maybe this wasn’t your problem but idk?
GetMouse() doesnt work directly with key inputs, use this - local UserInputService = game:GetService(“UserInputService”) UserInputService.InputBegan:Connect(function(input) if input.Keycode == Enum.Keycode.YourKey then if script.Parent.Modal == true then script.Parent.Modal = false else script.Parent.Model = true end end end)
This was such a good and simple video, but the one issue with it is when you add more GUIs with it, It will start to no longer work. Does anyone know why this occurs?
@@thetribegxming meh it didnt work for me but thats just how coding is like its never the same for everyone but it doesnt rlly matter cuz i found a different one and used it for my new fps game if u want the link to try it just ask thanks
It might be cause this video is a year old, but it didnt work. Or it doesnt work anymore at least :( But it was a very good video, and tutorial. I just think this oen is outdated now...
local UserInputService = game:GetService("UserInputService") local Frame = script.Parent UserInputService.InputBegan:Connect(function(input, gameProccesedEvent) if input.KeyCode == Enum.KeyCode.LeftShift then if script.Parent.Modal == true then Script.Parent.Modal = false else Script.Parent.Modal = true end end end) --if it does not work then try removing the caps on if then script.parent.modal
idk if ur still looking but u can just make a button and set "Modal" to on and justt make the text and background invisible (dont set visible to off tho) but its been 2 months so im assuming u found it
yea so i figured out why it doesnt work instead of his code do this: local plr = game.Players.LocalPlayer plr:GetMouse() .KeyDown:Connect(function(V) if "v" then if script.Parent.Modal == true then script.Parent.Modal = false else script.Parent.Modal = true end end end) this should fix it worked for me :)
@@cometrrrr alr i gotchu i made new code this should work now be sure to add the text button or it will not work: local plr = game.Players.LocalPlayer plr:GetMouse().KeyDown:Connect(function(key) if key == "v" then if script.Parent.Modal == true then script.Parent.Modal = false else script.Parent.Modal = true end end end) this should work now
If this video beats my other dev one then I'll be a dev only youtuber
Can you try to do it again but for mobile
@@Ice_Image wait why do you need it for moblie cant they click the whole screen?
@@mouseyplayz1040they can lol
@@OrbicaI I forgot a , inbetween the cant
Wth xdd@@Ice_Image
amazing video. i love to support small creators, i subbed :)
This was more simple and understable compared to the other toturials, it was complicated tysm for making this video!
Bruh youtube makes 720p look like 480p and makes it look like the sun
it doesnt work pls help
YESSS THIS IS EXACTLY WHAT IVE BEEN LOOKING FOR!!! THANK U!!!
IT WORKS TYSM!!!!
I WAS LOOKING FOR THIS FOR DAYS
"Press v to mouse your mouse" 💀
bruh
ur lucky he/she made a tutorial on it
@@smilehoodie she/he took it from a dev forum. so ur not very lucky
Lolllll 😂😂😂
@@smilehoodie no response.....
why doesnt it work? i followed every step and i spent 30 minutes trying to figure out whats wrong
Dunno if you uhh figured it out already but the actual text button has to be set as visible. Just make the text invisible as well as the background. Maybe this wasn’t your problem but idk?
my game isnt working with this and i dont know why
GetMouse() doesnt work directly with key inputs, use this -
local UserInputService = game:GetService(“UserInputService”)
UserInputService.InputBegan:Connect(function(input)
if input.Keycode == Enum.Keycode.YourKey then
if script.Parent.Modal == true then
script.Parent.Modal = false
else
script.Parent.Model = true
end
end
end)
same im trying to do mine cause its a fps game and it locks in first person and i wanted to change it
@@thegamingcat.-bj9fv same
if you make it a button for some reason mobile players cant turn
Best and fastest vid ever ty ur diff unlike these weird developers looking for veiws
ByteBlox better
This was such a good and simple video, but the one issue with it is when you add more GUIs with it, It will start to no longer work. Does anyone know why this occurs?
it doesnt work whatever i do, even if there is no error in the script
so i alreayd have GUI in my intro so how do i put the button in the game instead of the start
it doesnt work in 2024 is there any way i can edit it to work now
it works in 2024 i just did it
@@thetribegxming meh it didnt work for me but thats just how coding is
like its never the same for everyone
but it doesnt rlly matter cuz i found a different one and used it for my new fps game if u want the link to try it just ask thanks
Guys if it’s not working it’s bc u have to use a text button not text label
Does not work. I even have typed it manually. It just wont unlock it
works for others so i dont know what happened
same its not working
@@mouseyplayz1040 thats a lazy response.
@@dryzoFy that's a really lazy reply, i think as someone who is talking about how lazy someones comment is, you should have a less lazy reply.
@@JayRobloxYTube 💀🤓🫵
If you test that place from mobile you can't move the visual
just amazing, the only tutorial that worked for me, tysm :DD
It might be cause this video is a year old, but it didnt work. Or it doesnt work anymore at least :( But it was a very good video, and tutorial. I just think this oen is outdated now...
it says that modal is not a part form playergui
Modal is from a textbutton
Anyone else notice the 'Press v to MOUSE your mouse'? 🤣
Tysm! 70th sub!
erm... So it doesn't work, can anyone help me out?
Tysm! 101th sub!
Man you are so insanly W i needed that so much Tysm!
thank you so much bro W vid!
mine dont work and i change it to Z
How would you do alt since i dont know what to change(also it works for F)
Hey, so for me it's not working can you please tell me whats wrong?
doesent work, unless you include a task.wait(Seconds) first!!!
THXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX I WERE SEARCHING LIKE A HOUR THANK YOU LIKE AND SUSCRIBED
it worked omg tysm u saved my game
what If I want it to function on ctrl
why do you need ctrl to unlock mouse are there thousands of hotkeys in your game?!!?!?!??!
local UserInputService = game:GetService("UserInputService")
local Frame = script.Parent
UserInputService.InputBegan:Connect(function(input, gameProccesedEvent)
if input.KeyCode == Enum.KeyCode.LeftShift then
if script.Parent.Modal == true then
Script.Parent.Modal = false
else
Script.Parent.Modal = true
end
end
end)
--if it does not work then try removing the caps on if then script.parent.modal
@@mouseyplayz1040 isnt it LeftControl?
@@Campbloxxer why not bruh
@@necvox743 Ctrl Is For More Crouching Or Shiftlocks But Not For Unlocking Mouses
Thanks so much man. Your a real chad. i liked the video.
69 comments lol, now 70. This really helped, thank you!
common mistake:
if the button is not visible, the script will not work.
what button pls tell quick
@@kartikI2khi the "press v to unlock cursor" button
@@dabbingformylife ok its visible but its still doesn't work and i a m using the fps template
Up and coming roblox dev here, did it really have to be a TextButton to work?, from my knowledge, anything might work
doesn't work
TYSM FOR HELPING IN MY GAME!!!
"Press V to mouse your mouse"
well i was searching for a script that can unlock the mouse without even having to click anything or smth
idk if ur still looking but u can just make a button and set "Modal" to on and justt make the text and background invisible (dont set visible to off tho) but its been 2 months so im assuming u found it
@@pexoz5040 never did
it doesn't work please HELP!!!!!
Keydown was depracated! what do i do??
"make sure too lick and sub" bro what??
mine dont work?
doesnt work anymore :(
didnt work for me
same
man lick and sub.. on the desk and change the script it has some yt thingys
this video is the thing that actually works for me !!!
It is not working anymore
man my studio dont funcionality this script
nice tutorial!
why it no work :(
yes, i'd like to mouse my mouse
whats with the holy great battle of heaven ahh music 🙏
BRO RLLY TRIED TRICKING US WITH 'Modal' INSTEAD OF MODEL
man THIS ISN'T WORK I SPEND ON IT 1 DAY 1 DAY BRO AND THIS ISN'T WORK IM ALL DO GOOD
you spend 1 day on copying code?
@@JustASimpleMan07 trying to figuring it out quit being smart yk what he means
@@CathalsYTChannel i clearly didn't also it's not that hard of code to understand
tysm after 6 hours or looking for smth
Perfect tysm 👍
its fake it not work
nah it worked for me
Doesn't work :((
it didnt work man
lick what🤨🤨🤨🤨
Ayo?
it wont work??
Did you use starterGUI with text button and then localScript???
I think i know why, you copied it from the youtube description but i made a typo so try not i fixed it
Thank you i liked
Thanks so much!
works perfectly! tysm
Enjoy
god damn you saved me legend
Thank ypu so much man
you are my hero
Thanks so much
W tysm
tysm for helping me
it's working!
Thanks!
thanks
THANK YOU
verry tanks
thx!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Ur so bad this dosent even work
U didnt do it right lol
yea so i figured out why it doesnt work instead of his code do this:
local plr = game.Players.LocalPlayer
plr:GetMouse() .KeyDown:Connect(function(V)
if "v" then
if script.Parent.Modal == true then
script.Parent.Modal = false
else
script.Parent.Modal = true
end
end
end)
this should fix it worked for me :)
It didn't work for me :)
@@cometrrrr alr i gotchu i made new code this should work now be sure to add the text button or it will not work:
local plr = game.Players.LocalPlayer
plr:GetMouse().KeyDown:Connect(function(key)
if key == "v" then
if script.Parent.Modal == true then
script.Parent.Modal = false
else
script.Parent.Modal = true
end
end
end)
this should work now
It still doesn't work but you don't have to keep trying
@@cometrrrr works for me... check the video again ig
THANKS YOUUUU
it didn't work
doesnt work
Thanks!
this doesnt work!!!
U didnt do it right lol
Thanks
Thank you
thankyou so much.
it doesnt work
does not work