#Help Me with this script
64 messages · Page 1 of 1 (latest)
Yeah
when you press the "E" key make the gui Mask Visible and play the sounds, and have an animation of the gui going down from the top of the screen
Your need user input by
local uis = game:GetService(“UserInputService”)
** You are now Level 1! **
?
Yes
uis.InputBegan:Connect(function(key)
if key == Enum.Keycode.Keycodehere then
(Whatever you want here)
end
end)
Sorry it’s taking so long I am typing this on mobile lol
Wait is this supposed to be like a toggle?
Sorry I speak Portuguese, so I'm using the translator so I didn't understand what you meant..
Oh ok
One sec
So like you press it once then the mask is visible then you press the key again the mask goes invisible?
yeah
Kk lemme re write that
local activated = false
uis.InputBegan:Connect(function(key)
if key == Enum.Keycode.KeycodeHere then
if activated = false then
activated = true
(The visible part here)
else
activated = false
(The invisible part here)
end
end
end)
Also the Keycode here part delete that and put whatever key you want to toggle it
The code that makes it visible and not visible
Also add another = where the = is underlined red
Quão preciso é isso?
Blue part makes it invisible and the green part makes it visible I mean the highlighted part
A parte azul torna invisível e a parte verde torna visível, quero dizer a parte destacada
Man just came out of no where lol
ok thanks
também adicione outro sinal de igual lá
Idk how accurate these translations are
if activated == false then*
Yea
sim, agora teste, deve funcionar, se não, faça uma captura de tela do erro e envie-a
it is happening that I press "E" and the mask does not appear
** You are now Level 2! **
so not working but no errors?
** You are now Level 1! **
Yeah
try transparency = 0
Any output?
or did you write a visible function
is a image
oh
ImageTrasparency?
Yea
Nvm