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 then
Number = Number + 1
textGui.Text = string(Number)
print("work")
end
end)
uis.InputEnded:connect(function(inst)
if inst.KeyCode == Enum.KeyCode.Q then
Number = Number - 1
textGui.Text = string(Number)
print("work")
end
end)
I was trying to make a radio as a game, with music. I want it to work sorta like a radio. The gui thing looks like this
ScreenGui -> TextGui:RadioNumb -> IntValue:Radio, LocalScript:changeStation

2 comments
21:25:28.994 - Players.Sheepsee.PlayerGui.ScreenGui.RadioNumb.changeStation:18: attempt to call a table value - the error if you guys need it
In line 11, I don't think you need the word 'string' before 'Number'. Since Number is a variable, you can simply use 'Number'.