I need help with this control panel. I want it to change orientation when you either click or hold the button down. But I’m having problems with making it keep adding (for example) 0.5 to the orientation when you hold
Right now it only works when you click once
I also need help with making the orientation display on this


Here’s my code
-- local player = game.Players
local lung = game.Workspace.Lung
local ControlPanel = game.Workspace.ControlPanel
local TurnLeft = ControlPanel.TurnL
local TurnRight = ControlPanel.TurnR
local Forward = ControlPanel.Forward
local Backwards = ControlPanel.Backwards
local orientaionViewer = ControlPanel.View.SurfaceGui.TextLabel.Text
player.PlayerAdded:Connect(function()
orientaionViewer = lung.Orientation
end)
TurnLeft.ClickDetector.MouseClick:Connect(function()
lung.Orientation = lung.Orientation + Vector3.new(0, 0.5, 0)
end)
TurnRight.ClickDetector.MouseClick:Connect(function()
lung.Orientation = lung.Orientation + Vector3.new(0, -0.5, 0)
end)