So, currently once I hold down my F button, immediately the block script will unblock it. The script doesn’t even get to work, so I’d like just a little bit of help.
UIS.InputBegan:Connect(function(Input, IsTyping)
if not IsTyping then
if Input.KeyCode == Enum.KeyCode.F and Debounce == false then
Debounce = true
RS.Block:FireServer()
print("It work")
Blockin:Play()
while ButtonDown == true do
wait()
end
print("It no work")
Blockin:Stop()
RS.Release:FireServer("Release")
wait(.9)
Debounce = false
end
end
end)
UIS.InputBegan:Connect(function(Input, IsTyping)
if not IsTyping then
if Input.KeyCode == Enum.KeyCode.F and Debounce == false and ButtonDown == false then
Debounce = true
RS.Block:FireServer()
print("It work")
Blockin:Play()
while ButtonDown == true do
wait()
end
end
end
end)
UIS.InputEnded:Connect(function(Input, IsTyping)
if not IsTyping then
if Input.KeyCode == Enum.KeyCode.F and Debounce == false and ButtonDown == true then
print("It no work")
Blockin:Stop()
RS.Release:FireServer("Release")
wait(.9)
Debounce = false
end
end
end)
I changed it to this, but the input never changes, and only the first function works.