#FireServer is not a valid member of BindableEvent

30 messages · Page 1 of 1 (latest)

lament heart
#

it just never works for me really

barren lantern
#

is it like a toggle?

lament heart
#

yeah

barren lantern
#

you would want to use userinputservice, and also give me a second I'll write up a code for you

#

I'll also try and explain the code as I'm only a novice at coding

lament heart
#

ohhh thank you for the help

barren lantern
#

@lament heart (sorry for ping btw)
heres ur code


local UserInputService = game:GetService("UserInputService") --get the userinputservice to detect inputs and blah blah blah
local parent = script.Parent --aka the screengui's frame

UserInputService.InputBegan:Connect(function(Input, IsTyping) --checks for input, IsTyping is automatically detected
    if IsTyping == false then
        if Input.KeyCode == Enum.KeyCode.Q then --replace the "Q" with ur preferred keybind
            if parent.Transparency == 0 then --checks for the transparency
                parent.Transparency = 0.5 -- sets transparency to 0.5
            else 
                parent.Transparency = 0 --self explanatory
            end
        end
    end
end)

#

userinputservice is basically your goto for input detection like keybinds

#

screengui in startergui, then frame then localscript with this code in it

#

if you need further help just ask

lament heart
barren lantern
lament heart
#

right, i just mean should i get rid of the scripts i have right now

barren lantern
#

ye

#

i mean if u want to

lament heart
#

uhhhhh

#

this changed the GUI transparency but not the parts i was trying to

barren lantern
#

ah

#

if you wanna change the transparency of other parts

#

you can just define them as a variable

lament heart
#

i see i see

#

i think that's all i needed, tysm!

barren lantern
#

mind telling me the names of

#

the uhh

#

things you need the transparency change on?

lament heart
#

i think i can figure it out fehdghskldjg

#

from here anyway

barren lantern
#

local parent2 = script.parent.parent."name of gui here" (you should be locating the screengu