LBRY Block Explorer

LBRY Claims • how-to-make-a-script-that-open-close-a

a2961da10e4329e08051ae6c04af16d911ebe72a

Published By
Created On
4 Apr 2022 16:34:20 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
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
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
HOW T
Controlling
VIDEO
WE MA
Controlling
VIDEO
MODUL
Controlling
VIDEO
HOW T
Controlling
VIDEO
3D ST
Controlling
VIDEO
LET'S
Controlling
VIDEO
HOW T
Controlling
VIDEO
[ADVA
Controlling
VIDEO
HOW T