UIS.InputBegan:Connect(function(input,isTyping)
if isTyping then
return
elseif input.KeyCode == Enum.KeyCode.B then
if TurnedOn == true then return end
if Buso.Value > 5 then
print("B fired")
Remote:FireServer("Tier1")
if Buso.Value > 8 then
TurnedOn = true
Remote:FireServer("Tier2")
elseif Buso.Value > 8.5 then
print("Tier 3 fired")
Remote:FireServer("Tier3")
TurnedOn = true
elseif Buso.Value > 9 then
Remote:FireServer("Tier4")
TurnedOn = true
wait(Buso.Value)
TurnedOn = false
end
end
end
--end
--end
end)
Problem:
When you have a busovalue they all fire at once. The first remote event, second, and third all fire at one time.
What do I want?
I want only one to fire at once. For example, if your buso value is at 8.7 then only the second remote event should fire. The third remote event shouldn’t fire since you don’t have enough. The first one should not fire either.