#need help user input service
1 messages · Page 1 of 1 (latest)
input.KeyCode == Enum.KeyCode.Q
also
next to input
add new string
"Input,CanProced"
and next to keycode.Q
put "and not canproced"
cuz it wont activate when typing in chat
if you dont do this it will activate when also typing in chat
and other things
oh and also
isnt there supposed to be
game:GetService("UserInputService")
?
did you forget there exists variables
also
to make it work when equipped
ik,
local UIS = game:GetService("UserInputService")
smh like that
he maybe just put on top of the script
oooh
ye i did
make just a variable "equipped = false" and when tool equips it will be true, when unequips false. So then just add "if equipped == true then"
alr ill try this
local equipped = false
tool.Equipped:Connect(function()
equipped = true
end)
tool.UnEquipped:Connect(function()
equipped = false
end)
userinputsevice.InputBegan:Connect(function(input,cantproc)
if equipped == true and input.KeyCode == enum.KeyCode.Q and not cantproc then
-- code
end
end)
@worn mist
@worn mist
@worn mist
share me error code?
scripter 1 🥀
and writes .UnEquipped 🥀
Welp, FOR ME it always worked
oh you about that
discord doesn't have auto type or how to name it
no worries
this is what i mean by auto type
yh I know
you also can do this
(emptyVar :: Tool).nowItHasAutoType