#FireServer is not a valid member of BindableEvent
30 messages · Page 1 of 1 (latest)
is it like a toggle?
yeah
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
ohhh thank you for the help
@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
would i be using this instead of the server script, or is this replacing everything?
uhhh...the code should be in the screengui itself..not anywhere else
right, i just mean should i get rid of the scripts i have right now
ah
if you wanna change the transparency of other parts
you can just define them as a variable
mind telling me the names of
the uhh
things you need the transparency change on?
local parent2 = script.parent.parent."name of gui here" (you should be locating the screengu