Answered by
4 years ago Edited 4 years ago
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Number = script.Parent.Radio.Value
local textGui = script.Parent
local uis = game:GetService("UserInputService")
uis.InputEnded:Connect(function(inst)
if inst.KeyCode == Enum.KeyCode.E and Number < 101.1 then
Number = Number + 0.1
textGui.Text = tostring(Number)
print("work")
elseif inst.KeyCode == Enum.KeyCode.Q and Number > 99.9 + 0.1 then -- without +0.1 it would be able to have a 99.8 value, don't think you want that
Number = Number - 0.1
textGui.Text = tostring(Number)
print("work")
end
end)