local player = game.Players.LocalPlayer local mouse = player:GetMouse() local Number = game.StarterGui.ScreenGui.RadioNumb.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.0 then Number = Number + 0.1 textGui.Text = tostring(Number) print("work") elseif inst.KeyCode == Enum.KeyCode.Q and Number ~= 100.0 then Number = Number - 0.1 textGui.Text = tostring(Number) print("work") end end)
Reposting brr
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)