#Help
19 messages · Page 1 of 1 (latest)
** You are now Level 8! **
Connect
** You are now Level 3! **
?
this?
Yup
I'll try it now
Does it work?
same thing, it considers all buttons as F button, and I need to make it activate only on F.
function FlashLightButton(BindName, InputState)
UIS.InputBegan:Connect(function(input)
local KeyCode = Enum.KeyCode.F;
if KeyCode == Enum.KeyCode.F or InputState == Enum.UserInputState.Begin and BindName == 'FlashBind' then
if script.flashlight.Value ~= false then
script.flashlight.Value = false;
return;
end;
elseif KeyCode == Enum.KeyCode.F and BindName == 'FlashBind' then
return
end
script.flashlight.Value = true;
print(KeyCode)
end);
end```
