UIS.InputBegan:Connect(function(Y,k)if Y.KeyCode~=Enum.KeyCode.R then return end game.ReplicatedStorage.pause:FireServer()end)UIS.InputEnded:Connect(function(Y,k)if Y.KeyCode~=Enum.KeyCode.R then return end game.ReplicatedStorage.unpause:FireServer()end)

UIS.InputBegan:Connect(function(i, g)
        if i.KeyCode ~= Enum.KeyCode.R then return end

        game.ReplicatedStorage.pause:FireServer()
end)
UIS.InputEnded:Connect(function(i, g)
        if i.KeyCode~=Enum.KeyCode.R then return end
        game.ReplicatedStorage.unpause:FireServer()
end)
