how to make a script that open / close a gui (Explained)
how to make a script that open / close a gui the Local script:
frame = script.Parent --Note this is the path of the frame player = game.Players.LocalPlayer --Don't change this line mouse = player:GetMouse() --Don't change this line Key = "e" -- here put your key as a string, for the tuto i'm gonna bing it to "E" key
mouse.KeyDown:connect(function(key) if key:lower() == Key then --here we should check whathever if the key pressed its the key we want or not if frame.Visible == true then -- if the frame opened then close it frame.Visible = false else --else open the frame frame.Visible = true end end end) ... https://www.youtube.com/watch?v=49Af58Pfiyo
2022-04-04
0.0 LBC
Copyrighted (contact publisher)
14303664 Bytes