#Help Me with this script

64 messages · Page 1 of 1 (latest)

serene blaze
#

You want something to run when you press a key on your keyboard?

regal roost
#

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

serene blaze
#

Your need user input by

local uis = game:GetService(“UserInputService”)

regal roost
viscid muskBOT
#

studio** You are now Level 1! **studio

regal roost
#

?

serene blaze
#

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

regal roost
#

ok

serene blaze
#

Wait is this supposed to be like a toggle?

regal roost
#

Sorry I speak Portuguese, so I'm using the translator so I didn't understand what you meant..

serene blaze
#

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?

regal roost
#

yeah

serene blaze
#

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

regal roost
#

and what do you mean the invisible part and the visible part

serene blaze
#

The code that makes it visible and not visible

#

Also add another = where the = is underlined red

#

Quão preciso é isso?

regal roost
serene blaze
#

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

icy fog
#

@regal roost Sauce from you pfp.

#

*pfp

serene blaze
#

Man just came out of no where lol

serene blaze
#

também adicione outro sinal de igual lá

regal roost
serene blaze
#

Idk how accurate these translations are

near dawn
serene blaze
#

Yea

regal roost
serene blaze
#

sim, agora teste, deve funcionar, se não, faça uma captura de tela do erro e envie-a

regal roost
#

it is happening that I press "E" and the mask does not appear

viscid muskBOT
#

studio** You are now Level 2! **studio

near dawn
viscid muskBOT
#

studio** You are now Level 1! **studio

regal roost
#

Yeah

near dawn
#

try transparency = 0

near dawn
#

or did you write a visible function

regal roost
#

is a image

near dawn
#

oh

regal roost
#

ImageTrasparency?

near dawn
#

try that

#

yea

serene blaze
regal roost
#

I think I understand the error

#

and i put

#

script.parent.parent

near dawn
#

probably

#

also set a variable for it

#

local Mask = script.parent

serene blaze
#

Nvm

regal roost