I don’t remember where I got this script from, but I think I should remove line 5, right? And if that’s not the case, what exactly does it do?
----------------Left--------------
uis.InputBegan:Connect(function(inputObject, gameProcessedEvent, gameProcessed)
if gameProcessed then return end -- << This line
if (inputObject.KeyCode == KeyLeft[1]) or (inputObject.KeyCode == KeyLeft[2]) then
LeftKey.Looped = true
StopAllAniamtions()
LeftKey:Play()
end
end)
uis.InputEnded:Connect(function(inputObject, gameProcessedEvent, gameProcessed)
if gameProcessed then return end -- << this is the same
if (inputObject.KeyCode == KeyLeft[1]) or (inputObject.KeyCode == KeyLeft[2]) then
LeftKey.Looped = false
end
end)
----------------------------------